registrysyncer

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	lggr logger.Logger,
	peerWrapper p2ptypes.PeerWrapper,
	relayer contractReaderFactory,
	registryAddress string,
) (*registrySyncer, error)

New instantiates a new RegistrySyncer

Types

type Capability added in v2.15.0

type Capability struct {
	ID             string
	CapabilityType capabilities.CapabilityType
}

type DON added in v2.15.0

type DON struct {
	capabilities.DON
	CapabilityConfigurations map[string]capabilities.CapabilityConfiguration
}

type DonID

type DonID uint32

type Launcher

type Launcher interface {
	Launch(ctx context.Context, registry *LocalRegistry) error
}

type LocalRegistry added in v2.15.0

type LocalRegistry struct {
	IDsToDONs         map[DonID]DON
	IDsToNodes        map[p2ptypes.PeerID]kcr.CapabilitiesRegistryNodeInfo
	IDsToCapabilities map[string]Capability
	// contains filtered or unexported fields
}

func (*LocalRegistry) ConfigForCapability added in v2.15.0

func (l *LocalRegistry) ConfigForCapability(ctx context.Context, capabilityID string, donID uint32) (capabilities.CapabilityConfiguration, error)

func (*LocalRegistry) LocalNode added in v2.15.0

func (l *LocalRegistry) LocalNode(ctx context.Context) (capabilities.Node, error)

type Syncer

type Syncer interface {
	services.Service
	AddLauncher(h ...Launcher)
}

Jump to

Keyboard shortcuts

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