Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDocumentNotFound = fmt.Errorf("document not found")
ErrDocumentNotFound is document not found error.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(opts *ResolveHandler)
Option is an option for resolve handler.
func WithCreateDocumentStore ¶
WithCreateDocumentStore will enable resolution from 'create' document store in case that document is not found in operations store.
func WithEnableDIDDiscovery ¶
WithEnableDIDDiscovery sets optional did discovery flag.
func WithUnpublishedDIDLabel ¶
WithUnpublishedDIDLabel sets did label.
type ResolveHandler ¶
type ResolveHandler struct {
// contains filtered or unexported fields
}
ResolveHandler resolves generic documents.
func NewResolveHandler ¶
func NewResolveHandler(namespace string, resolver dochandler.Resolver, discovery discovery, anchorGraph common.AnchorGraph, metrics metricsProvider, opts ...Option) *ResolveHandler
NewResolveHandler returns a new document resolve handler.
func (*ResolveHandler) ResolveDocument ¶
func (r *ResolveHandler) ResolveDocument(id string) (*document.ResolutionResult, error)
ResolveDocument resolves a document.
Click to show internal directories.
Click to hide internal directories.