web

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 11

Documentation

Index

Constants

View Source
const (
	// HTTPClientOpt http client opt.
	HTTPClientOpt = "httpClient"

	// UseHTTPOpt use http option.
	UseHTTPOpt = "useHTTP"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VDR

type VDR struct{}

VDR implements the VDR interface.

func New

func New() *VDR

New creates a new VDR struct.

func (*VDR) Accept

func (v *VDR) Accept(method string) bool

Accept method of the VDR interface.

func (*VDR) Close

func (v *VDR) Close() error

Close method of the VDR interface.

func (*VDR) Create added in v0.1.6

func (v *VDR) Create(didDoc *did.Doc, opts ...vdrapi.DIDMethodOption) (*did.DocResolution, error)

Create creates a did:web diddoc (unsupported at the moment).

func (*VDR) Deactivate added in v0.1.6

func (v *VDR) Deactivate(did string, opts ...vdrapi.DIDMethodOption) error

Deactivate did doc.

func (*VDR) Read

func (v *VDR) Read(didID string, opts ...vdrapi.DIDMethodOption) (*did.DocResolution, error)

Read resolves a did:web did.

func (*VDR) Update added in v0.1.6

func (v *VDR) Update(didDoc *diddoc.Doc, opts ...vdrapi.DIDMethodOption) error

Update did doc.

Jump to

Keyboard shortcuts

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