daemon

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: MIT 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 {
	ElectorConfig *elector.Config `json:"electorConfig,omitempty"`

	LoggerConfig *logger.Config `json:"loggerConfig,omitempty"`
}

func SetupConfig

func SetupConfig() (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

type Daemon

type Daemon struct {
	// SampleRate is the rate at which the daemon will sample the cluster
	SampleRate int

	// Elector is the elector
	Elector *elector.Elector

	// Logger is the logger
	Logger *logger.Logger
}

func NewDaemon

func NewDaemon() *Daemon

func (*Daemon) Run

func (d *Daemon) Run(stopCh <-chan struct{})

Jump to

Keyboard shortcuts

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