timer

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name     = "timer-fallbacker"
	ShowName = "Timer Fallbacker"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Fallbacker

type Fallbacker struct {
	config.CommonFields
	MaxAttempts        int `mapstructure:"max_attempts"`
	ExponentialBackoff int `mapstructure:"exponential_backoff"`
	MaxBackoff         int `mapstructure:"max_backoff"`
}

Fallbacker is a timer fallbacker when forward fails.

func (*Fallbacker) DefaultConfig

func (t *Fallbacker) DefaultConfig() string

func (*Fallbacker) Description

func (t *Fallbacker) Description() string

func (*Fallbacker) FallBack

func (t *Fallbacker) FallBack(batch event.BatchEvents, forward api.ForwardFunc) bool

func (*Fallbacker) Name

func (t *Fallbacker) Name() string

func (*Fallbacker) ShowName added in v0.4.0

func (t *Fallbacker) ShowName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL