didanchor

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is db implementation of latest did/anchor reference.

func New

func New(provider storage.Provider) (*Store, error)

New creates db implementation of latest did/anchor reference.

func (*Store) Get

func (s *Store) Get(suffix string) (string, error)

Get retrieves anchor for specified suffix.

func (*Store) GetBulk

func (s *Store) GetBulk(suffixes []string) ([]string, error)

GetBulk retrieves anchors for specified suffixes.

func (*Store) PutBulk

func (s *Store) PutBulk(suffixes []string, areNew []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