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 WithEnableDIDDiscovery ¶
WithEnableDIDDiscovery sets optional did discovery flag.
func WithEnableResolutionFromAnchorOrigin ¶
WithEnableResolutionFromAnchorOrigin sets optional resolution from anchor origin 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 coreResolver, discovery discoveryService, domain string, endpointClient endpointClient, remoteResolver remoteResolver, anchorGraph common.AnchorGraph, metrics metricsProvider, opts ...Option) *ResolveHandler
NewResolveHandler returns a new document resolve handler.
func (*ResolveHandler) ResolveDocument ¶
func (r *ResolveHandler) ResolveDocument(id string, opts ...document.ResolutionOption) (*document.ResolutionResult, error)
ResolveDocument resolves a document.
Click to show internal directories.
Click to hide internal directories.