mediator

package
v0.0.0-...-3ac8fd0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 14 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

This section is empty.

Functions

This section is empty.

Types

type Mediator

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

func NewMediator

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

func (*Mediator) Start

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

type MediatorController

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

func NewMediatorController

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

func (*MediatorController) Start

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

type MediatorOptions

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

Jump to

Keyboard shortcuts

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