vdr

package
v0.1.6-0...-5c25bcb Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VDROperationID = "/vdr"

	SaveDIDPath       = vdrDIDPath
	GetDIDPath        = vdrDIDPath + "/{id}"
	ResolveDIDPath    = vdrDIDPath + "/resolve/{id}"
	GetDIDRecordsPath = vdrDIDPath + "/records"
)

constants for the VDR operations.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	// contains filtered or unexported fields
}

Operation contains basic common operations provided by controller REST API.

func New

func New(ctx provider) (*Operation, error)

New returns new common operations rest client instance.

func (*Operation) GetDID

func (o *Operation) GetDID(rw http.ResponseWriter, req *http.Request)

GetDID swagger:route GET /vdr/did/{id} vdr getDIDReq

Gets did document with the friendly name.

Responses:

default: genericError
    200: documentRes

func (*Operation) GetDIDRecords

func (o *Operation) GetDIDRecords(rw http.ResponseWriter, req *http.Request)

GetDIDRecords swagger:route GET /vdr/did/records vdr getDIDRecords

Retrieves the did records

Responses:

default: genericError
    200: didRecordResult

func (*Operation) GetRESTHandlers

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

GetRESTHandlers get all controller API handler available for this service.

func (*Operation) ResolveDID

func (o *Operation) ResolveDID(rw http.ResponseWriter, req *http.Request)

ResolveDID swagger:route GET /vdr/did/resolve/{id} vdr resolveDIDReq

Resolve did

Responses:

default: genericError
    200: documentRes

func (*Operation) SaveDID

func (o *Operation) SaveDID(rw http.ResponseWriter, req *http.Request)

SaveDID swagger:route POST /vdr/did vdr saveDIDReq

Saves a did document with the friendly name.

Responses:

default: genericError

Jump to

Keyboard shortcuts

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