chaos

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package chaos allows errors to be introduced in a sequencer stack.

Index

Constants

This section is empty.

Variables

View Source
var ErrChaos = errors.New("chaos")

ErrChaos can be used in tests to differentiate intentionally injected errors versus unexpected errors.

View Source
var Set = wire.NewSet(wire.Struct(new(Chaos), "Config"))

Set is used by Wire.

Functions

This section is empty.

Types

type Chaos

type Chaos struct {
	Config *sequencer.Config
}

Chaos is a sequencer.Shim that randomly injects errors into the acceptor base on sequencer.StartOptions.Chaos.

func (*Chaos) Wrap

func (c *Chaos) Wrap(
	_ *stopper.Context, delegate sequencer.Sequencer,
) (sequencer.Sequencer, error)

Wrap implements sequencer.Shim.

Jump to

Keyboard shortcuts

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