Documentation ¶
Index ¶
- Constants
- type Accept
- type Option
- type VDR
- func (v *VDR) Accept(method string, opts ...vdrapi.DIDMethodOption) bool
- func (v *VDR) Close() error
- func (v *VDR) Create(didDoc *did.Doc, opts ...vdrapi.DIDMethodOption) (*did.DocResolution, error)
- func (v *VDR) Deactivate(didID string, opts ...vdrapi.DIDMethodOption) error
- func (v *VDR) Read(didID string, opts ...vdrapi.DIDMethodOption) (*did.DocResolution, error)
- func (v *VDR) Update(didDoc *did.Doc, opts ...vdrapi.DIDMethodOption) error
Constants ¶
View Source
const ( // VersionIDOpt version id opt this option is not mandatory. VersionIDOpt = "versionID" // VersionTimeOpt version time opt this option is not mandatory. VersionTimeOpt = "versionTime" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(opts *VDR)
Option configures the peer vdr.
func WithHTTPClient ¶
WithHTTPClient option is for custom http client.
func WithResolveAuthToken ¶
WithResolveAuthToken add auth token for resolve.
func WithResolveAuthTokenProvider ¶
func WithResolveAuthTokenProvider(p authTokenProvider) Option
WithResolveAuthTokenProvider add auth token provider.
func WithTimeout ¶
WithTimeout option is for definition of HTTP(s) timeout value of DID Resolver.
type VDR ¶
type VDR struct {
// contains filtered or unexported fields
}
VDR via HTTP(s) endpoint.
func (*VDR) Accept ¶
func (v *VDR) Accept(method string, opts ...vdrapi.DIDMethodOption) bool
Accept did method - attempt to resolve any method.
func (*VDR) Create ¶
func (v *VDR) Create(didDoc *did.Doc, opts ...vdrapi.DIDMethodOption) (*did.DocResolution, error)
Create did doc.
func (*VDR) Deactivate ¶
func (v *VDR) Deactivate(didID string, opts ...vdrapi.DIDMethodOption) error
Deactivate did doc.
func (*VDR) Read ¶
func (v *VDR) Read(didID string, opts ...vdrapi.DIDMethodOption) (*did.DocResolution, error)
Read implements didresolver.DidMethod.Read interface (https://w3c-ccg.github.io/did-resolution/#resolving-input)
Click to show internal directories.
Click to hide internal directories.