Versions in this module Expand all Collapse all v0 v0.2.0 Dec 7, 2018 v0.1.0 Dec 7, 2018 Changes in this version + func Disabled(fl *FaultLine) + func Enabled(fl *FaultLine) + func ReplaceGlobals(fl *FaultLine) + type FaultLine struct + func G() *FaultLine + func (fl *FaultLine) Delay(ctx context.Context) bool + func (fl *FaultLine) DoInTheFuture(before time.Duration, f func(), ctx context.Context) bool + func (fl *FaultLine) Possible() bool + func (fl *FaultLine) PossibleDelay(ctx context.Context) bool + func (fl *FaultLine) PossibleError(err error) error + func (fl *FaultLine) PossibleErrorOr(existing error, possible error) error + func (fl *FaultLine) PossiblyDoInTheFuture(before time.Duration, f func(), ctx context.Context) bool + func (fl *FaultLine) PossiblyPanicInTheFuture(before time.Duration, ctx context.Context) bool + func (fl *FaultLine) PossiblySignalInTheFuture(signal os.Signal, before time.Duration, ctx context.Context) bool + func (fl *FaultLine) With(options ...Option) *FaultLine + type Option func(fl *FaultLine) + func AuditFunction(f func(*FaultLine, string, string)) Option + func DisabledIf(b bool) Option + func EnabledIf(b bool) Option + func MaximumDelay(duration time.Duration) Option + func ModifiedDelay(f func(float64) float64) Option + func Possibility(f float64) Option