managed

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 13 Imported by: 0 modules, 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

Overview

Package managed provides "managed" versions of Oracle and BootstrapNode that perform garbage collection, track on-chain configuration changes, serializes messages to binary, etc...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunManagedBootstrapNode

func RunManagedBootstrapNode(
	ctx context.Context,

	bootstrapperFactory types.BootstrapperFactory,
	v1bootstrappers []string,
	v2bootstrappers []commontypes.BootstrapperLocator,
	contractConfigTracker types.ContractConfigTracker,
	database types.Database,
	localConfig types.LocalConfig,
	logger loghelper.LoggerWithContext,
)

RunManagedBootstrapNode runs a "managed" bootstrap node. It handles configuration updates on the contract.

func RunManagedOracle

func RunManagedOracle(
	ctx context.Context,

	v1bootstrappers []string,
	v2bootstrappers []commontypes.BootstrapperLocator,
	configOverrider types.ConfigOverrider,
	configTracker types.ContractConfigTracker,
	contractTransmitter types.ContractTransmitter,
	database types.Database,
	datasource types.DataSource,
	localConfig types.LocalConfig,
	logger loghelper.LoggerWithContext,
	monitoringEndpoint commontypes.MonitoringEndpoint,
	netEndpointFactory types.BinaryNetworkEndpointFactory,
	privateKeys types.PrivateKeys,
)

RunManagedOracle runs a "managed" version of protocol.RunOracle. It handles configuration updates and translating from commontypes.BinaryNetworkEndpoint to protocol.NetworkEndpoint.

func TrackConfig

func TrackConfig(
	ctx context.Context,

	configTracker types.ContractConfigTracker,
	initialConfigDigest types.ConfigDigest,
	localConfig types.LocalConfig,
	logger loghelper.LoggerWithContext,

	chChanges chan<- types.ContractConfig,
)

Types

type ConfigOverriderWrapper

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

A wrapper around a types.ConfigOverrider that gracefully handles nil ConfigOverriders

func (ConfigOverriderWrapper) ConfigOverride

func (cow ConfigOverriderWrapper) ConfigOverride() *types.ConfigOverride

Jump to

Keyboard shortcuts

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