Help us shape the future of Go! Take the 2026 Go Developer Survey

vdr

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

View Source
const (
	VDROperationID = "/vdr"

	SaveDIDPath       = vdrDIDPath
	GetDIDPath        = vdrDIDPath + "/{id}"
	ResolveDIDPath    = vdrDIDPath + "/resolve/{id}"
	CreateDIDPath     = vdrDIDPath + "/create"
	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) CreateDID added in v0.1.7

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

CreateDID swagger:route POST /vdr/did/create vdr createDIDReq

Create a did document.

Responses:

default: genericError
    200: documentRes

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: resolveDIDRes

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