did

package
v0.0.0-...-efe2ce5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParseDID = did.ParseDID

Functions

This section is empty.

Types

type Document

type Document = did.Document

type MultiResolver

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

func NewMultiResolver

func NewMultiResolver() *MultiResolver

func (*MultiResolver) AddHandler

func (mr *MultiResolver) AddHandler(method string, res Resolver)

func (*MultiResolver) FlushCacheFor

func (mr *MultiResolver) FlushCacheFor(didstr string)

func (*MultiResolver) GetDocument

func (mr *MultiResolver) GetDocument(ctx context.Context, didstr string) (*did.Document, error)

type Resolver

type Resolver interface {
	GetDocument(ctx context.Context, didstr string) (*did.Document, error)
	FlushCacheFor(did string)
}

type Service

type Service = did.Service

type WebResolver

type WebResolver struct {
	Insecure bool
}

func (*WebResolver) FlushCacheFor

func (wr *WebResolver) FlushCacheFor(did string)

func (*WebResolver) GetDocument

func (wr *WebResolver) GetDocument(ctx context.Context, didstr string) (*Document, error)

Jump to

Keyboard shortcuts

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