configuration

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	RedisConfiguration    RedisConfiguration
	K8SConfiguration      K8SConfiguration
	Addr                  string
	PProfAddr             string
	NodeName              string
	EndpointConfiguration EndpointConfiguration
	LeaderConfiguration   LeaderConfiguration
	Debug                 bool
}

func GetConfiguration added in v0.11.0

func GetConfiguration() Configuration

type EndpointConfiguration added in v0.14.0

type EndpointConfiguration struct {
	LEDPath string
}

type K8SConfiguration

type K8SConfiguration struct {
	LockName  string
	Namespace string
}

type LeaderConfiguration

type LeaderConfiguration struct {
	Leader    string
	Scheduler SchedulerConfiguration
	Rotation  time.Duration
}

type RedisConfiguration added in v0.15.0

type RedisConfiguration struct {
	Addr     string
	Username string
	Password string
}

type SchedulerConfiguration

type SchedulerConfiguration struct {
	Mode string
}

Jump to

Keyboard shortcuts

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