diddochandler

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResolveHandler

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

ResolveHandler resolves DID documents.

func NewResolveHandler

func NewResolveHandler(basePath string, resolver dochandler.Resolver) *ResolveHandler

NewResolveHandler returns a new DID document resolve handler.

func (ResolveHandler) Handler

func (h ResolveHandler) Handler() common.HTTPRequestHandler

Handler returns the handler.

func (ResolveHandler) Method

func (h ResolveHandler) Method() string

Method returns the HTTP method.

func (ResolveHandler) Path

func (h ResolveHandler) Path() string

Path returns the context path.

type UpdateHandler

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

UpdateHandler handles the creation and update of DID documents.

func NewUpdateHandler

func NewUpdateHandler(basePath string, processor dochandler.Processor, pc protocol.Client) *UpdateHandler

NewUpdateHandler returns a new DID document update handler.

func (UpdateHandler) Handler

func (h UpdateHandler) Handler() common.HTTPRequestHandler

Handler returns the handler.

func (UpdateHandler) Method

func (h UpdateHandler) Method() string

Method returns the HTTP method.

func (UpdateHandler) Path

func (h UpdateHandler) Path() string

Path returns the context path.

Jump to

Keyboard shortcuts

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