Documentation ¶
Overview ¶
Package chaos provides a simple API to inject errors into applications to test error handling in-the-wild.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrChaos is the error returned my MaybeError. It supports checking for chaos errors via: errors.Is(err, chaos.ErrChaos). ErrChaos = errors.NewSentinel("chaos error") )
Functions ¶
func MaybeError ¶
MaybeError sometimes returns an error based on the probability set in the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.