Directories
¶
| Path | Synopsis |
|---|---|
|
adapter
|
|
|
http
Package http wraps an http.RoundTripper so outbound client calls are subject to chaos.
|
Package http wraps an http.RoundTripper so outbound client calls are subject to chaos. |
|
httpsrv
Package httpsrv provides net/http middleware that subjects inbound requests to chaos.
|
Package httpsrv provides net/http middleware that subjects inbound requests to chaos. |
|
sql
Package sql wraps a database/sql driver so calls are subject to chaos.
|
Package sql wraps a database/sql driver so calls are subject to chaos. |
|
Package chaos provides explicit injection points: chaos.Point(ctx, name) consults the engine bound to ctx and returns a fault error (or nil) at a place no adapter wraps - between two pure functions, inside a goroutine, at a state-machine transition.
|
Package chaos provides explicit injection points: chaos.Point(ctx, name) consults the engine bound to ctx and returns a fault error (or nil) at a place no adapter wraps - between two pure functions, inside a goroutine, at a state-machine transition. |
|
Package chaostest provides testing.TB integration helpers for chaotic.
|
Package chaostest provides testing.TB integration helpers for chaotic. |
|
bench
Package bench runs one benchmark body across a series of chaos profiles, so you can see how a metric (e.g.
|
Package bench runs one benchmark body across a series of chaos profiles, so you can see how a metric (e.g. |
|
golden
Package golden records a chaos fault fire-sequence from one test run and replays it deterministically in another, to turn a flaky CI failure into a reproducible local one.
|
Package golden records a chaos fault fire-sequence from one test run and replays it deterministically in another, to turn a flaky CI failure into a reproducible local one. |
|
property
Package property is a property-testing harness for chaos rules: it runs a test body against many randomized rule configurations and, on the first failure, minimizes to the smallest rule set that still triggers it.
|
Package property is a property-testing harness for chaos rules: it runs a test body against many randomized rule configurations and, on the first failure, minimizes to the smallest rule set that still triggers it. |
|
quick
Package quick provides opinionated one-line shortcuts for the most common chaos test setups.
|
Package quick provides opinionated one-line shortcuts for the most common chaos test setups. |
|
scenarios
Package scenarios provides one-call chaos recipes for common failure modes.
|
Package scenarios provides one-call chaos recipes for common failure modes. |
|
Package engine holds the rules and decision logic that adapters consult on every wrapped operation.
|
Package engine holds the rules and decision logic that adapters consult on every wrapped operation. |
|
examples
|
|
|
chaos-point
command
Command chaos-point demonstrates an explicit injection point guarding a post-commit hook.
|
Command chaos-point demonstrates an explicit injection point guarding a post-commit hook. |
|
circuit-breaker
command
Command circuit-breaker shows a circuit breaker opening after chaos injects repeated failures, after which calls short-circuit instead of calling the failing dependency.
|
Command circuit-breaker shows a circuit breaker opening after chaos injects repeated failures, after which calls short-circuit instead of calling the failing dependency. |
|
db-conn-pool
command
Command db-conn-pool shows database/sql discarding a poisoned connection and transparently retrying on a fresh one when chaos injects a connection drop.
|
Command db-conn-pool shows database/sql discarding a poisoned connection and transparently retrying on a fresh one when chaos injects a connection drop. |
|
prod-safety-rails
command
Command prod-safety-rails shows the production bounds that keep chaos from becoming the outage: a failure budget, a max-concurrent cap, a production guard, and a kill switch.
|
Command prod-safety-rails shows the production bounds that keep chaos from becoming the outage: a failure budget, a max-concurrent cap, a production guard, and a kill switch. |
|
retry-http
command
Command retry-http demonstrates a retry loop recovering from a transient fault injected into an http.Client's transport.
|
Command retry-http demonstrates a retry loop recovering from a transient fault injected into an http.Client's transport. |
|
Package fault defines the fault primitives that rules execute when they fire.
|
Package fault defines the fault primitives that rules execute when they fire. |
|
internal
|
|
|
sqlclass
Package sqlclass classifies SQL strings into a leading verb and a best-effort primary table name.
|
Package sqlclass classifies SQL strings into a leading verb and a best-effort primary table name. |
|
source
|
|
|
terms
Package terms parses a compact one-line chaos rule DSL into engine.RuleSpec / engine.Rule.
|
Package terms parses a compact one-line chaos rule DSL into engine.RuleSpec / engine.Rule. |
Click to show internal directories.
Click to hide internal directories.