config

package
v0.0.0-...-6d09ece Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const LogLevel = "NEON_LOG_LEVEL"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Fan FanConfig
	// contains filtered or unexported fields
}

func GetConfig

func GetConfig() Config

GetConfig returns the configuration

func (*Config) LogLevel

func (c *Config) LogLevel() zerolog.Level

LogLevel returns the log level

func (*Config) Save

func (c *Config) Save() error

Save saves the configuration

type FanConfig

type FanConfig struct {
	Enabled bool
	CPU     [][]int
	HDD     [][]int
}

type RawConfig

type RawConfig struct {
	Fan struct {
		Enabled bool           `toml:"enabled"`
		CPU     map[string]int `toml:"cpu"`
		HDD     map[string]int `toml:"hdd"`
	} `toml:"fan"`
}

Jump to

Keyboard shortcuts

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