didanchorinfo

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDataNotFound = errors.New("data not found")

ErrDataNotFound describes data not found error.

Functions

This section is empty.

Types

type DidAnchorInfo

type DidAnchorInfo struct {
	// contains filtered or unexported fields
}

DidAnchorInfo retrieves the latest anchor CID and anchor origin for this did (suffix).

func New

func New(namespace string, didAnchors didAnchorProvider, opsProcessor operationProcessor) *DidAnchorInfo

New returns a new DidAnchorInfo.

func (*DidAnchorInfo) Accept

func (h *DidAnchorInfo) Accept(did string) bool

Accept will accept/reject processing of this did(resource id).

func (*DidAnchorInfo) GetResourceInfo

func (h *DidAnchorInfo) GetResourceInfo(did string) (registry.Metadata, error)

GetResourceInfo retrieves anchoring info for did(suffix).

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL