agent

package
v18.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 GoogleProfilerRunner added in v18.1.0

type GoogleProfilerRunner struct {
	Service string
	Version string
}

func (*GoogleProfilerRunner) Start added in v18.1.0

func (r *GoogleProfilerRunner) Start(cfg ProfilerCfg) error

type Module added in v18.1.0

type Module[CM any] struct {
	Log                                     *slog.Logger
	Runner                                  ProfilerRunner
	CfgAccessor                             func(CM) *ModuleCfg
	DefaultAndValidateConfigurationCallback func(CM) error
}

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

func (m *Module[CM]) DefaultAndValidateConfiguration(cm 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(_ context.Context, cmCh <-chan CM) error

type ModuleCfg added in v18.1.0

type ModuleCfg struct {
	ProfilerCfg ProfilerCfg
}

type ProfilerCfg added in v18.1.0

type ProfilerCfg struct {
	Enabled         bool
	ProjectID       string
	CredentialsFile string
	DebugLogging    bool
}

type ProfilerRunner added in v18.1.0

type ProfilerRunner interface {
	Start(cfg ProfilerCfg) error
}

Jump to

Keyboard shortcuts

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