capabilities

package
v2.13.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAggregator added in v2.13.0

func NewAggregator(name string, config values.Map, lggr logger.Logger) (types.Aggregator, error)

func NewMockMercuryDataProducer added in v2.12.0

func NewMockMercuryDataProducer(trigger *triggers.MercuryTriggerService, lggr logger.Logger) *mockMercuryDataProducer

func NewRegistrySyncer added in v2.11.0

func NewRegistrySyncer(peerWrapper p2ptypes.PeerWrapper, registry core.CapabilitiesRegistry, dispatcher remotetypes.Dispatcher, lggr logger.Logger,
	networkSetup HardcodedDonNetworkSetup) *registrySyncer

RegistrySyncer updates local Registry to match its onchain counterpart

Types

type HardcodedDonNetworkSetup added in v2.13.0

type HardcodedDonNetworkSetup struct {
	WorkflowsDonInfo         capabilities.DON
	TriggerCapabilityDonInfo capabilities.DON
	TargetCapabilityDonInfo  capabilities.DON
	// contains filtered or unexported fields
}

HardcodedDonNetworkSetup is a temporary setup for testing purposes

func NewHardcodedDonNetworkSetup added in v2.13.0

func NewHardcodedDonNetworkSetup() (HardcodedDonNetworkSetup, error)

func (HardcodedDonNetworkSetup) IsTargetDon added in v2.13.0

func (h HardcodedDonNetworkSetup) IsTargetDon(id p2ptypes.PeerID) bool

func (HardcodedDonNetworkSetup) IsTriggerDon added in v2.13.0

func (h HardcodedDonNetworkSetup) IsTriggerDon(id p2ptypes.PeerID) bool

func (HardcodedDonNetworkSetup) IsWorkflowDon added in v2.13.0

func (h HardcodedDonNetworkSetup) IsWorkflowDon(id p2ptypes.PeerID) bool

type Registry

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

Registry is a struct for the registry of capabilities. Registry is safe for concurrent use.

func NewRegistry

func NewRegistry(lggr logger.Logger) *Registry

NewRegistry returns a new Registry.

func (*Registry) Add

Add adds a capability to the registry.

func (*Registry) Get

Get gets a capability from the registry.

func (*Registry) GetAction

GetAction gets a capability from the registry and tries to coerce it to the ActionCapability interface.

func (*Registry) GetConsensus

func (r *Registry) GetConsensus(ctx context.Context, id string) (capabilities.ConsensusCapability, error)

GetConsensus gets a capability from the registry and tries to coerce it to the ConsensusCapability interface.

func (*Registry) GetTarget

GetTarget gets a capability from the registry and tries to coerce it to the TargetCapability interface.

func (*Registry) GetTrigger

GetTrigger gets a capability from the registry and tries to coerce it to the TriggerCapability interface.

func (*Registry) List

List lists all the capabilities in the registry.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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