didanchor

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

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(suffixes []string) ([]string, error)

Get retrieves anchors for specified suffixes.

func (*Store) Put

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

Put 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