did

package
v0.0.0-...-feceb36 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0, MIT Imports: 11 Imported by: 5

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
	// contains filtered or unexported fields
}

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