Documentation ¶
Index ¶
- type Accept
- type Option
- type VDR
- func (v *VDR) Accept(method string) bool
- func (v *VDR) Close() error
- func (v *VDR) Create(keyManager kms.KeyManager, 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, _ ...vdrapi.ResolveOption) (*did.DocResolution, error)
- func (v *VDR) Update(didDoc *did.Doc, opts ...vdrapi.DIDMethodOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(opts *VDR)
Option configures the peer vdr.
func WithResolveAuthToken ¶
WithResolveAuthToken add auth token for resolve.
func WithTLSConfig ¶
WithTLSConfig option is for definition of secured HTTP transport using a tls.Config instance.
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) Create ¶ added in v0.1.6
func (v *VDR) Create(keyManager kms.KeyManager, didDoc *did.Doc, opts ...vdrapi.DIDMethodOption) (*did.DocResolution, error)
Create did doc.
func (*VDR) Deactivate ¶ added in v0.1.6
func (v *VDR) Deactivate(didID string, opts ...vdrapi.DIDMethodOption) error
Deactivate did doc.
func (*VDR) Read ¶
func (v *VDR) Read(didID string, _ ...vdrapi.ResolveOption) (*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.