Documentation ¶
Index ¶
- func GetDidMethod(didID string) (string, error)
- type Option
- type Registry
- func (r *Registry) Close() error
- func (r *Registry) Create(didMethod string, did *diddoc.Doc, opts ...vdrapi.DIDMethodOption) (*diddoc.DocResolution, error)
- func (r *Registry) Deactivate(did string, opts ...vdrapi.DIDMethodOption) error
- func (r *Registry) Resolve(did string, opts ...vdrapi.ResolveOption) (*diddoc.DocResolution, error)
- func (r *Registry) Update(didDoc *diddoc.Doc, opts ...vdrapi.DIDMethodOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(opts *Registry)
Option is a vdr instance option.
func WithDefaultServiceEndpoint ¶
WithDefaultServiceEndpoint allows for setting default service endpoint.
func WithDefaultServiceType ¶
WithDefaultServiceType is default service type for this creator.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry vdr registry.
func (*Registry) Create ¶
func (r *Registry) Create(didMethod string, did *diddoc.Doc, opts ...vdrapi.DIDMethodOption) (*diddoc.DocResolution, error)
Create a new DID Document and store it in this registry.
func (*Registry) Deactivate ¶
func (r *Registry) Deactivate(did string, opts ...vdrapi.DIDMethodOption) error
Deactivate did document.
func (*Registry) Resolve ¶
func (r *Registry) Resolve(did string, opts ...vdrapi.ResolveOption) (*diddoc.DocResolution, error)
Resolve did document.
Click to show internal directories.
Click to hide internal directories.