single

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: GPL-3.0 Imports: 8 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"`
}

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