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
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)
Click to show internal directories.
Click to hide internal directories.