diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-02-22 10:33:44 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-02-22 10:33:44 +0100 |
commit | 927a314012720b82fe8d3c0d4e96bb1bf1dbb12d (patch) | |
tree | 084a5b67566317d555599a3de5567fe4e77de8dd /instance.go | |
parent | 5154fbe82a186d1c56a29452ab50444a25e716a6 (diff) |
renamed sth and cosigning endpoints
Diffstat (limited to 'instance.go')
-rw-r--r-- | instance.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/instance.go b/instance.go index a67307f..c729bc8 100644 --- a/instance.go +++ b/instance.go @@ -38,14 +38,14 @@ type Endpoint string const ( EndpointAddEntry = Endpoint("add-entry") - EndpointAddCosi = Endpoint("add-cosi") // TODO: name? + EndpointAddCosignature = Endpoint("add-cosignature") EndpointGetEntries = Endpoint("get-entries") EndpointGetAnchors = Endpoint("get-anchors") EndpointGetProofByHash = Endpoint("get-proof-by-hash") EndpointGetConsistencyProof = Endpoint("get-consistency-proof") - EndpointGetSth = Endpoint("get-sth") - EndpointGetStableSth = Endpoint("get-stable-sth") // TODO: name? - EndpointGetCosi = Endpoint("get-cosi") // TODO: name? + EndpointGetLatestSth = Endpoint("get-latest-sth") + EndpointGetStableSth = Endpoint("get-stable-sth") + EndpointGetCosignedSth = Endpoint("get-cosigned-sth") ) func (i Instance) String() string { @@ -100,14 +100,14 @@ func NewLogParameters(signer crypto.Signer, logId *namespace.Namespace, treeId i func (i *Instance) Handlers() []Handler { return []Handler{ Handler{instance: i, handler: addEntry, endpoint: EndpointAddEntry, method: http.MethodPost}, - Handler{instance: i, handler: addCosi, endpoint: EndpointAddCosi, method: http.MethodPost}, + Handler{instance: i, handler: addCosi, endpoint: EndpointAddCosignature, method: http.MethodPost}, Handler{instance: i, handler: getEntries, endpoint: EndpointGetEntries, method: http.MethodGet}, Handler{instance: i, handler: getAnchors, endpoint: EndpointGetAnchors, method: http.MethodGet}, Handler{instance: i, handler: getProofByHash, endpoint: EndpointGetProofByHash, method: http.MethodGet}, Handler{instance: i, handler: getConsistencyProof, endpoint: EndpointGetConsistencyProof, method: http.MethodGet}, - Handler{instance: i, handler: getSth, endpoint: EndpointGetSth, method: http.MethodGet}, + Handler{instance: i, handler: getSth, endpoint: EndpointGetLatestSth, method: http.MethodGet}, Handler{instance: i, handler: getStableSth, endpoint: EndpointGetStableSth, method: http.MethodGet}, - Handler{instance: i, handler: getCosi, endpoint: EndpointGetCosi, method: http.MethodGet}, + Handler{instance: i, handler: getCosi, endpoint: EndpointGetCosignedSth, method: http.MethodGet}, } } |