agent

package
v0.0.0-...-edfbe55 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Uploader constants
	UploaderBatchSize    = 1000
	UploaderMaxQueueSize = 10000

	// Goroutine counts
	NumBackgroundGoroutines = 2

	// Timing constants
	MetricsShutdownTimeout = 3 * time.Second

	// Tracer constants
	PeriodicTraceHopLimit = 3

	// Signal constants
	ShutdownSignals = "SIGINT, SIGTERM"
)

Constants

View Source
const (
	LogLevelTrace = "trace"
	LogLevelDebug = "debug"
	LogLevelInfo  = "info"
	LogLevelWarn  = "warn"
	LogLevelError = "error"
)

Log levels

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

Agent represents the RPingMesh agent

func New

func New(cfg *config.AgentConfig) (*Agent, error)

New creates a new agent instance

func (*Agent) Run

func (a *Agent) Run() error

Run runs the agent with signal handling for graceful shutdown

func (*Agent) Start

func (a *Agent) Start() error

Start starts the agent

func (*Agent) Stop

func (a *Agent) Stop()

Stop stops the agent

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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