mediator

package
v0.0.0-brrefs-pull-98-... Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const CONTROL_LOOP_INTERVAL = 10 * time.Second

the background "even if we have not heard of an event" loop i.e. things will not wait 10 seconds - the control loop reacts to events in the system - this 10 second background loop is just for in case we miss any events

Variables

View Source
var Module = fx.Options(
	fx.Provide(
		newServices,
	),
)

Functions

func AddMediatorCliFlags added in v0.2.5

func AddMediatorCliFlags(cmd *cobra.Command, options *MediatorOptions)

func CheckMediatorOptions added in v0.2.5

func CheckMediatorOptions(options MediatorOptions) error

Types

type Mediator added in v0.3.0

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

func NewMediator added in v0.3.0

func NewMediator(
	options MediatorOptions,
	web3SDK *web3.Web3SDK,
	executor executor.Executor,
) (*Mediator, error)

func (*Mediator) Start added in v0.3.0

func (mediator *Mediator) Start(ctx context.Context, cm *system.CleanupManager) chan error

type MediatorController added in v0.3.0

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

func NewMediatorController added in v0.3.0

func NewMediatorController(
	options MediatorOptions,
	web3SDK *web3.Web3SDK,
	executor executor.Executor,
) (*MediatorController, error)

func (*MediatorController) Start added in v0.3.0

func (controller *MediatorController) Start(ctx context.Context, cm *system.CleanupManager) chan error

type MediatorOptions added in v0.3.0

type MediatorOptions struct {
	Bacalhau bacalhau.BacalhauExecutorOptions
	Services dto.ServiceConfig
	Web3     web3.Web3Options
}

func NewMediatorOptions added in v0.2.5

func NewMediatorOptions() MediatorOptions

func ProcessMediatorOptions added in v0.2.5

func ProcessMediatorOptions(options MediatorOptions) (MediatorOptions, error)

Jump to

Keyboard shortcuts

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