Documentation ¶
Index ¶
- Constants
- type Command
- func (o *Command) CreateDID(rw io.Writer, req io.Reader) command.Error
- func (o *Command) GetDID(rw io.Writer, req io.Reader) command.Error
- func (o *Command) GetDIDRecords(rw io.Writer, req io.Reader) command.Error
- func (o *Command) GetHandlers() []command.Handler
- func (o *Command) ResolveDID(rw io.Writer, req io.Reader) command.Error
- func (o *Command) SaveDID(rw io.Writer, req io.Reader) command.Error
- type CreateDIDRequest
- type DIDArgs
- type DIDRecordResult
- type Document
- type IDArg
- type NameArg
Constants ¶
View Source
const ( // InvalidRequestErrorCode is typically a code for invalid requests. InvalidRequestErrorCode = command.Code(iota + command.VDR) // SaveDIDErrorCode for save did error. SaveDIDErrorCode // GetDIDErrorCode for get did error. GetDIDErrorCode // ResolveDIDErrorCode for get did error. ResolveDIDErrorCode // CreateDIDErrorCode for create did error. CreateDIDErrorCode )
Error codes.
View Source
const ( // command name. CommandName = "vdr" // command methods. SaveDIDCommandMethod = "SaveDID" GetDIDsCommandMethod = "GetDIDRecords" GetDIDCommandMethod = "GetDID" ResolveDIDCommandMethod = "ResolveDID" CreateDIDCommandMethod = "CreateDID" )
constants for the VDR controller's methods.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command contains command operations provided by vdr controller.
func (*Command) GetDIDRecords ¶
GetDIDRecords retrieves the did doc containing name and didID. //TODO Add pagination feature #1566.
func (*Command) GetHandlers ¶
GetHandlers returns list of all commands supported by this controller command.
func (*Command) ResolveDID ¶
ResolveDID resolve did.
type CreateDIDRequest ¶ added in v0.1.7
type CreateDIDRequest struct { Method string `json:"method,omitempty"` DID json.RawMessage `json:"did,omitempty"` Opts map[string]interface{} `json:"opts,omitempty"` }
CreateDIDRequest is model for create did request.
type DIDRecordResult ¶
DIDRecordResult holds the did doc records.
type Document ¶
type Document struct {
DID json.RawMessage `json:"did,omitempty"`
}
Document is model for did document.
Click to show internal directories.
Click to hide internal directories.