single

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Shared *SharedConfig   `yaml:"shared"`
	Server *server.Config  `yaml:"server"`
	Agents []*agent.Config `yaml:"agents"`
}

func (*Config) ApplyShared

func (c *Config) ApplyShared() error

ApplyShared sets the shared config in to the server and all agents.

func (*Config) Validate

func (c *Config) Validate() error

type SharedConfig

type SharedConfig struct {
	// LoggingLevel is the logging level to use.
	LoggingLevel string `yaml:"logging" default:"info"`
	// Indexer is the indexer to use.
	Indexer *indexer.Config `yaml:"indexer"`
	// Store is the store to use.
	Store *store.Config `yaml:"store"`
	// MetricsAddr is the address to serve metrics on.
	MetricsAddr string `yaml:"metricsAddr" default:"localhost:8080"`
	// ShutdownTimeoutSeconds bounds how long each agent waits for its in-flight
	// fetches and uploads once a shutdown starts. One value covers every agent.
	ShutdownTimeoutSeconds int `yaml:"shutdownTimeoutSeconds" default:"10"`
	// FetchTimeouts bounds one fetch attempt per artifact kind. One set of
	// values covers every agent; an agent may still set its own.
	FetchTimeouts agent.FetchTimeouts `yaml:"fetchTimeouts"`
}

type Single

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

func New

func New(log logrus.FieldLogger, config *Config) *Single

func (*Single) Start

func (s *Single) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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