Documentation ¶
Overview ¶
Package switcher contains a meta-Sequencer that switches between various modes of operation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( besteffort.Set, chaos.Set, core.Set, immediate.Set, script.Set, scheduler.Set, ProvideSequencer, )
Set is used by Wire.
Functions ¶
This section is empty.
Types ¶
type Mode ¶
type Mode int
Mode describes a strategy using another sequencer.
type Switcher ¶
type Switcher struct {
// contains filtered or unexported fields
}
Switcher switches between delegate sequencers. It also adds script bindings into the sequencer stack.
func ProvideSequencer ¶
func ProvideSequencer( best *besteffort.BestEffort, core *core.Core, diags *diag.Diagnostics, imm *immediate.Immediate, script *script.Sequencer, stagingPool *types.StagingPool, targetPool *types.TargetPool, ) *Switcher
ProvideSequencer is called by Wire.
func (*Switcher) Start ¶
func (s *Switcher) Start( ctx *stopper.Context, opts *sequencer.StartOptions, ) (types.MultiAcceptor, *notify.Var[sequencer.Stat], error)
Start a sequencer that can switch between various modes of operation. Callers must call Switcher.WithMode before calling this method.
Click to show internal directories.
Click to hide internal directories.