acknowlegement

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler handles notifications of successful anchor events processed from an Orb server.

func New

func New(store anchorLinkStore) *Handler

New returns a new handler.

func (*Handler) AnchorEventAcknowledged

func (p *Handler) AnchorEventAcknowledged(actor, anchorRef *url.URL, additionalAnchorRefs []*url.URL) error

AnchorEventAcknowledged handles a notification of a successful anchor event processed from an Orb server. The given additional references are added to the anchor link store so that they are included in WebFinger responses.

func (*Handler) UndoAnchorEventAcknowledgement

func (p *Handler) UndoAnchorEventAcknowledgement(actor, anchorRef *url.URL, additionalAnchorRefs []*url.URL) error

UndoAnchorEventAcknowledgement handles a notification that the previous acknowledgement of an anchor event was undone. The given additional references are removed from the anchor link store so that they are no longer included in WebFinger responses.

Jump to

Keyboard shortcuts

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