Documentation ¶
Overview ¶
Package replayable provides the EXPERIMENTAL semi-deterministic replayable policy.
Index ¶
Constants ¶
View Source
const Name = "replayable"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Replayable ¶
type Replayable struct { // parameter "maxInterval" MaxInterval time.Duration // parameter "seed" Seed string // contains filtered or unexported fields }
func New ¶
func New() *Replayable
func (*Replayable) ActionChan ¶
func (d *Replayable) ActionChan() chan signal.Action
func (*Replayable) LoadConfig ¶
func (r *Replayable) LoadConfig(cfg config.Config) error
parameters:
- maxInterval(duration): max interval (default: 10 msecs)
- seed(string): seed for replaying (default: empty). can be overriden by NMZ_REPLAY_SEED.
should support dynamic reloading
func (*Replayable) QueueEvent ¶
func (r *Replayable) QueueEvent(event signal.Event)
func (*Replayable) SetHistoryStorage ¶
func (d *Replayable) SetHistoryStorage(storage historystorage.HistoryStorage) error
Click to show internal directories.
Click to hide internal directories.