credential

package
v1.0.0 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: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnchorEventHandler added in v1.0.0

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

AnchorEventHandler handles a new, published anchor credential.

func New

func New(anchorPublisher anchorPublisher, casResolver casResolver,
	documentLoader ld.DocumentLoader,
	maxDelay time.Duration, anchorLinkStore anchorLinkStore,
	registry generatorRegistry,
) *AnchorEventHandler

New creates new credential handler.

func (*AnchorEventHandler) HandleAnchorEvent added in v1.0.0

func (h *AnchorEventHandler) HandleAnchorEvent(ctx context.Context, actor, anchorRef, source *url.URL,
	anchorEvent *vocab.AnchorEventType,
) error

HandleAnchorEvent handles an anchor event.

Jump to

Keyboard shortcuts

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