didclient

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package didclient provides REST operations.

Index

Constants

View Source
const (
	OperationID       = "/didclient"
	CreateBlocDIDPath = OperationID + "/create-trustbloc-did"
	CreatePeerDIDPath = OperationID + "/create-peer-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 string) (*Operation, error)

New returns new DID client rest instance.

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) CreateTrustBlocDID

func (c *Operation) CreateTrustBlocDID(rw http.ResponseWriter, req *http.Request)

CreateTrustBlocDID swagger:route POST /didclient/create-trustbloc-did didclient createTrustBlocDID

Creates a new trust bloc 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.

Jump to

Keyboard shortcuts

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