didstore

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DIDStore

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

DIDStore did store

func New

func New(opts ...Opt) *DIDStore

New return new instance of did store

func (*DIDStore) Get

func (d *DIDStore) Get(id string) (*did.Doc, error)

Get did store

func (*DIDStore) Put

func (d *DIDStore) Put(doc *did.Doc) error

Put did store

type Opt

type Opt func(opts *didStoreOpts)

Opt is a resolver instance option

func WithDidMethod

func WithDidMethod(method didstore.DidMethod) Opt

WithDidMethod to add did method DID methods are checked in the order added

Jump to

Keyboard shortcuts

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