vdri

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 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 Option

type Option func(opts *Registry)

Option is a vdri instance option.

func WithDefaultServiceEndpoint

func WithDefaultServiceEndpoint(serviceEndpoint string) Option

WithDefaultServiceEndpoint allows for setting default service endpoint.

func WithDefaultServiceType

func WithDefaultServiceType(serviceType string) Option

WithDefaultServiceType is default service type for this creator.

func WithVDRI

func WithVDRI(method vdriapi.VDRI) Option

WithVDRI adds did method implementation for store.

type Registry

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

Registry vdri registry.

func New

func New(ctx provider, opts ...Option) *Registry

New return new instance of vdri.

func (*Registry) Close

func (r *Registry) Close() error

Close frees resources being maintained by vdri.

func (*Registry) Create

func (r *Registry) Create(didMethod string, opts ...vdriapi.DocOpts) (*diddoc.Doc, error)

Create a new DID Document and store it in this registry.

func (*Registry) Resolve

func (r *Registry) Resolve(did string, opts ...vdriapi.ResolveOpts) (*diddoc.Doc, error)

Resolve did document.

func (*Registry) Store

func (r *Registry) Store(doc *diddoc.Doc) error

Store did store.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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