inspector

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inspector

type Inspector struct {
	*Providers
	// contains filtered or unexported fields
}

Inspector re-evaluates currently selected witnesses.

func New

func New(providers *Providers, maxWitnessDelay time.Duration) (*Inspector, error)

New returns a new anchor inspector.

func (*Inspector) CheckPolicy

func (c *Inspector) CheckPolicy(anchorID string) error

CheckPolicy will look into which witness did not provide proof and reselect different set of witnesses.

type Outbox

type Outbox interface {
	Post(activity *vocab.ActivityType, exclude ...*url.URL) (*url.URL, error)
}

Outbox defines outbox.

type Providers

type Providers struct {
	AnchorLinkStore anchorLinkStore
	Outbox          outboxProvider
	WitnessStore    witnessStore
	WitnessPolicy   witnessPolicy
}

Providers contains all of the providers required by the client.

Jump to

Keyboard shortcuts

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