Documentation ¶
Overview ¶
Package didclient provides REST operations.
Index ¶
Constants ¶
View Source
const ( OperationID = "/didclient" CreateOrbDIDPath = OperationID + "/create-orb-did" CreatePeerDIDPath = OperationID + "/create-peer-did" ResolveOrbDIDPath = OperationID + "/resolve-orb-did" )
constants for endpoints of DIDClient.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
Operation is controller REST service controller for DID Client.
func New ¶
func New(ctx didclient.Provider, domain, didAnchorOrigin, token string, unanchoredDIDMaxLifeTime int) (*Operation, error)
New returns new DID client rest instance.
func (*Operation) CreateOrbDID ¶ added in v0.1.7
func (c *Operation) CreateOrbDID(rw http.ResponseWriter, req *http.Request)
CreateOrbDID swagger:route POST /didclient/create-orb-did didclient createOrbDID
Creates a new orb DID.
Responses:
default: genericError 200: createDIDResp
func (*Operation) CreatePeerDID ¶
func (c *Operation) CreatePeerDID(rw http.ResponseWriter, req *http.Request)
CreatePeerDID swagger:route POST /didclient/create-peer-did didclient createPeerDID
Creates a new peer DID.
Responses:
default: genericError 200: createDIDResp
func (*Operation) GetRESTHandlers ¶
GetRESTHandlers get all controller API handler available for this protocol service.
func (*Operation) ResolveOrbDID ¶ added in v0.1.8
func (c *Operation) ResolveOrbDID(rw http.ResponseWriter, req *http.Request)
ResolveOrbDID swagger:route POST /didclient/resolve-orb-did didclient resolveOrbDID
Resolve orb DID.
Responses:
default: genericError 200: resolveDIDResp
Click to show internal directories.
Click to hide internal directories.