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. |
|
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. |
|
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
Package chaos-point demonstrates an explicit injection point guarding a post-commit hook.
|
Package chaos-point demonstrates an explicit injection point guarding a post-commit hook. |
|
circuit-breaker
command
Package circuit-breaker shows a circuit breaker opening after chaos injects repeated failures, after which calls short-circuit instead of calling the failing dependency.
|
Package 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
Package db-conn-pool shows database/sql discarding a poisoned connection and transparently retrying on a fresh one when chaos injects a connection drop.
|
Package 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
Package 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.
|
Package 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
Package retry-http demonstrates a retry loop recovering from a transient fault injected into an http.Client's transport.
|
Package 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. |
Click to show internal directories.
Click to hide internal directories.