config

package
v1.21.43 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LuxDataDirVar is the environment variable for the Lux data directory
	LuxDataDirVar = "LUXD_DATA_DIR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MetricsEnabled bool `json:"metricsEnabled"`
}

func New

func New() *Config

func (*Config) ConfigFileExists

func (*Config) ConfigFileExists() bool

func (*Config) ConfigValueIsSet

func (*Config) ConfigValueIsSet(key string) bool

func (*Config) GetConfigBoolValue

func (*Config) GetConfigBoolValue(key string) bool

func (*Config) GetConfigPath

func (*Config) GetConfigPath() string

GetConfigPath returns the path to the configuration file

func (*Config) GetConfigStringValue

func (*Config) GetConfigStringValue(key string) string

func (*Config) LoadNodeConfig

func (*Config) LoadNodeConfig() (string, error)

func (*Config) SetConfigValue

func (*Config) SetConfigValue(key string, value interface{}) error

Jump to

Keyboard shortcuts

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