didweb

package
v0.0.0-...-add3e8a Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorDIDNotFound = fmt.Errorf("not found")
)

Functions

func New

func New(id string) (*did.Document, error)

func Resolve

func Resolve(id string, client *http.Client) (*did.Document, error)

Types

type DIDWebURL

type DIDWebURL struct {
	QueryParams url.Values
	Anchor      string
	// contains filtered or unexported fields
}

func Parse

func Parse(id string) (DIDWebURL, error)

func ParsePath

func ParsePath(path string) (DIDWebURL, error)

func (*DIDWebURL) DID

func (u *DIDWebURL) DID() string

func (DIDWebURL) Host

func (u DIDWebURL) Host() string

func (*DIDWebURL) ID

func (u *DIDWebURL) ID() string

func (DIDWebURL) RawHost

func (u DIDWebURL) RawHost() string

func (*DIDWebURL) URL

func (u *DIDWebURL) URL() string

Jump to

Keyboard shortcuts

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