config

package
v0.0.0-...-1fa5987 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadDefault

func LoadDefault(cfg *Config) error

func MustLoadDefault

func MustLoadDefault(cfg *Config)

Types

type ClientConfig

type ClientConfig struct {
	URL string `toml:"url"`
}

type Config

type Config struct {
	HomeDir      string
	BinDir       string
	VarDir       string
	RunDir       string
	RunStateFile string
	TokensFile   string
	EsvTokenPath string

	HTTPPort uint `toml:"httpPort"`
	NoDaemon bool `toml:"noDaemon"`

	Client    ClientConfig
	GUI       GUIConfig `toml:"gui"`
	Log       LogConfig
	Telemetry TelemetryConfig
}

func (*Config) GetTokenClient

func (c *Config) GetTokenClient() token.TokenClient

type GUIConfig

type GUIConfig struct {
	Port uint
}

type LogConfig

type LogConfig struct {
	SyslogPort uint
}

type TelemetryConfig

type TelemetryConfig struct {
	Disable           bool
	DerefInternalUser bool
}

Jump to

Keyboard shortcuts

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