replayable

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2016 License: Apache-2.0 Imports: 7 Imported by: 1

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) Name

func (r *Replayable) Name() string

returns "replayable"

func (*Replayable) QueueEvent

func (r *Replayable) QueueEvent(event signal.Event)

func (*Replayable) SetHistoryStorage

func (d *Replayable) SetHistoryStorage(storage historystorage.HistoryStorage) error

Jump to

Keyboard shortcuts

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