agent

package
v18.6.0-rc44 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegisterInitBackoff   = 10 * time.Second
	RegisterMaxBackoff    = 5 * time.Minute
	RegisterResetDuration = 10 * time.Minute
	RegisterBackoffFactor = 2.0
	RegisterJitter        = 5.0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
}

func (*Factory) IsProducingLeaderModules

func (f *Factory) IsProducingLeaderModules() bool

func (*Factory) Name

func (f *Factory) Name() string

type Module added in v18.1.0

type Module[CM any] struct {
	Log        *slog.Logger
	PollConfig retry.PollConfig

	Register   func(ctx context.Context) error
	Unregister func(ctx context.Context) error
}

func (*Module[CM]) DefaultAndValidateConfiguration added in v18.1.0

func (m *Module[CM]) DefaultAndValidateConfiguration(config CM) error

func (*Module[CM]) Name added in v18.1.0

func (m *Module[CM]) Name() string

func (*Module[CM]) Run added in v18.1.0

func (m *Module[CM]) Run(ctx context.Context, cfg <-chan CM) error

Jump to

Keyboard shortcuts

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