Documentation ¶
Index ¶
- type Interface
- type Mood
- type Option
- func WithAutoTune(m Mood, step, until int) Option
- func WithAutoTuneENV() Option
- func WithBuffer(b uint) Option
- func WithBufferENV() Option
- func WithIgnoreErrors(er ...error) Option
- func WithInitChance(c uint8) Option
- func WithInitChanceENV() Option
- func WithMaxStep(c uint8) Option
- func WithMinStep(c uint8) Option
- func WithPrometheus() Option
- func WithThreshold(t uint) Option
- func WithThresholdENV() Option
- func WithUpdate(u time.Duration) Option
- func WithUpdateENV() Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶ added in v2.8.2
func NewService ¶
type Option ¶
type Option func(s *service) error
func WithAutoTune ¶ added in v2.8.3
WithAutoTune will help reduce / increase the odds in the absence of an event
func WithAutoTuneENV ¶ added in v2.8.4
func WithAutoTuneENV() Option
WithAutoTuneENV will help reduce / increase the odds in the absence of an event
func WithBuffer ¶
func WithBufferENV ¶ added in v2.8.4
func WithBufferENV() Option
func WithIgnoreErrors ¶
func WithInitChance ¶ added in v2.8.2
func WithInitChanceENV ¶ added in v2.8.2
func WithInitChanceENV() Option
func WithMaxStep ¶ added in v2.8.4
func WithMinStep ¶ added in v2.8.4
func WithPrometheus ¶
func WithPrometheus() Option
func WithThreshold ¶
WithThreshold is the allowed percentage to pass for example if the value is set to 7 any request with the chance of 93% or more will pass
func WithThresholdENV ¶ added in v2.8.4
func WithThresholdENV() Option
func WithUpdate ¶
func WithUpdateENV ¶ added in v2.8.2
func WithUpdateENV() Option
Click to show internal directories.
Click to hide internal directories.