didclient

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

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

func (c *Operation) GetRESTHandlers() []rest.Handler

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL