vdri

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VdriOperationID = "/vdri"

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

constants for the VDRI 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 added in v0.1.3

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

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

Gets did document with the friendly name.

Responses:

default: genericError
    200: documentRes

func (*Operation) GetDIDRecords added in v0.1.3

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

GetDIDRecords swagger:route GET /vdri/did/records vdri 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 added in v0.1.3

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

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

Resolve did

Responses:

default: genericError
    200: documentRes

func (*Operation) SaveDID added in v0.1.3

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

SaveDID swagger:route POST /vdri/did vdri 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