memdidanchor

package
v1.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DidAnchor

type DidAnchor struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

DidAnchor is in-memory implementation of did/anchor references.

func New

func New() *DidAnchor

New creates in-memory implementation for latest did anchor.

func (*DidAnchor) Get

func (ref *DidAnchor) Get(suffix string) (string, error)

Get retrieves anchor for specified suffix.

func (*DidAnchor) GetBulk added in v0.1.2

func (ref *DidAnchor) GetBulk(suffixes []string) ([]string, error)

GetBulk retrieves anchors for specified suffixes.

func (*DidAnchor) PutBulk added in v0.1.2

func (ref *DidAnchor) PutBulk(suffixes []string, _ []bool, cid string) error

PutBulk saves anchor cid for specified suffixes. If suffix already exists, anchor value will be overwritten.

Jump to

Keyboard shortcuts

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