generators

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CycleGen

type CycleGen struct {
	Gens []jepsen.Generator
	// contains filtered or unexported fields
}

func Cycle

func Cycle(gens ...jepsen.Generator) *CycleGen

func (*CycleGen) Actions

func (c *CycleGen) Actions() *types.Channel[*strategies.Action]

func (*CycleGen) Done

func (c *CycleGen) Done() chan struct{}

func (*CycleGen) Reset

func (c *CycleGen) Reset(ctx *strategies.Context) error

func (*CycleGen) Start

func (c *CycleGen) Start(ctx *strategies.Context) error

func (*CycleGen) Stop

func (c *CycleGen) Stop(ctx *strategies.Context) error

type StaggeredGen

type StaggeredGen struct {
	jepsen.Generator
	StaggeredDuration time.Duration
	// contains filtered or unexported fields
}

func Staggered

func Staggered(d time.Duration, gen jepsen.Generator) *StaggeredGen

func (*StaggeredGen) Actions

func (s *StaggeredGen) Actions() *types.Channel[*strategies.Action]

func (*StaggeredGen) Reset

func (s *StaggeredGen) Reset(c *strategies.Context) error

func (*StaggeredGen) Start

func (s *StaggeredGen) Start(c *strategies.Context) error

type TimeLimitGen

type TimeLimitGen struct {
	Limit time.Duration
	jepsen.Generator
	// contains filtered or unexported fields
}

func TimeLimit

func TimeLimit(d time.Duration, gen jepsen.Generator) *TimeLimitGen

func (*TimeLimitGen) Done

func (t *TimeLimitGen) Done() chan struct{}

func (*TimeLimitGen) Reset

func (t *TimeLimitGen) Reset(c *strategies.Context) error

func (*TimeLimitGen) Start

func (t *TimeLimitGen) Start(c *strategies.Context) error

func (*TimeLimitGen) Stop

func (t *TimeLimitGen) Stop(c *strategies.Context) error

Jump to

Keyboard shortcuts

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