config

package
v0.0.0-...-b90a9eb Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: AGPL-3.0 Imports: 4 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 {
	KubeConfig           string
	Namespace            string
	NumWorkers           int
	HA                   HA
	Metrics              Metrics
	Env                  string
	LogLevel             string
	LineqTcpAddr         string
	LineqHttpAddr        string
	LineqTcpPort         int
	LineqHttpPort        int
	RoomTableName        string
	UserTableName        string
	LineqSessionDuration int
}

func GetConfig

func GetConfig() (Config, error)

func (Config) String

func (c Config) String() string

type HA

type HA struct {
	Enabled       bool
	NodeId        string
	LeaseLockName string
	LeaseDuration time.Duration
	RenewDeadline time.Duration
	RetryPeriod   time.Duration
}

func (HA) String

func (c HA) String() string

type Metrics

type Metrics struct {
	Enabled bool
	Path    string
	Port    string
}

func (Metrics) String

func (m Metrics) String() string

Jump to

Keyboard shortcuts

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