Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerOptions ¶
type ControllerOptions struct { Logger *zap.Logger Ctx context.Context BeaconClient beaconprotocol.Beacon EthNetwork beaconprotocol.Network ValidatorController validator.Controller Executor DutyExecutor DutyLimit uint64 ForkVersion forksprotocol.ForkVersion Ticker slot_ticker.Ticker }
ControllerOptions holds the needed dependencies
type DutyController ¶
type DutyController interface {
Start()
}
DutyController interface for dispatching duties execution according to slot ticker
func NewDutyController ¶
func NewDutyController(opts *ControllerOptions) DutyController
NewDutyController creates a new instance of DutyController
type DutyExecutor ¶ added in v0.1.8
DutyExecutor represents the component that executes duties
func NewReadOnlyExecutor ¶ added in v0.1.8
func NewReadOnlyExecutor(logger *zap.Logger) DutyExecutor
NewReadOnlyExecutor creates a dummy executor that is used to run in read mode
Click to show internal directories.
Click to hide internal directories.