inspector

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: 12 Imported by: 1

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(ctx context.Context, 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 the providers required by the client.

Jump to

Keyboard shortcuts

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