From 927a314012720b82fe8d3c0d4e96bb1bf1dbb12d Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Mon, 22 Feb 2021 10:33:44 +0100 Subject: renamed sth and cosigning endpoints --- instance.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'instance.go') 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}, } } -- cgit v1.2.3