Versions in this module Expand all Collapse all v0 v0.25.1 Mar 8, 2025 Changes in this version + type Event interface + type EventCall struct + Args []string + Caller string + Component string + Method string + Replica int + SpanID int + TraceID int + type EventDeliverCall struct + Component string + Replica int + SpanID int + TraceID int + type EventDeliverError struct + SpanID int + TraceID int + type EventDeliverReturn struct + SpanID int + TraceID int + type EventOpFinish struct + Error string + SpanID int + TraceID int + type EventOpStart struct + Args []string + Name string + SpanID int + TraceID int + type EventPanic struct + Error string + Panicker string + Replica int + SpanID int + Stack string + TraceID int + type EventReturn struct + Component string + Replica int + Returns []string + SpanID int + TraceID int + type FakeComponent struct + func Fake[T any](impl any) FakeComponent + type Generator interface + Generate func(*rand.Rand) T + func Byte() Generator[byte] + func Filter[T any](gen Generator[T], predicate func(T) bool) Generator[T] + func Flip(p float64) Generator[bool] + func Float64() Generator[float64] + func Int() Generator[int] + func Map[K comparable, V any](size Generator[int], keys Generator[K], values Generator[V]) Generator[map[K]V] + func NonNegativeInt() Generator[int] + func OneOf[T any](xs ...T) Generator[T] + func Range(low, high int) Generator[int] + func Rune() Generator[rune] + func Slice[T any](size Generator[int], values Generator[T]) Generator[[]T] + func String() Generator[string] + func Weight[T any](choices []Weighted[T]) Generator[T] + type Options struct + Config string + Parallelism int + type Registrar interface + RegisterFake func(FakeComponent) + RegisterGenerators func(method string, generators ...any) + type Results struct + Duration time.Duration + Err error + History []Event + NumExecutions int + NumOps int + func (r *Results) Mermaid() string + type Simulator struct + func New(t testing.TB, x Workload, opts Options) *Simulator + func (s *Simulator) Run(duration time.Duration) Results + type Weighted struct + Gen Generator[T] + Weight float64 + type Workload interface + Init func(Registrar) error