conf

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Networks     []string            `yaml:"networks"`
	Disks        map[string][]string `yaml:"disks"`
	Units        Units               `yaml:"units"`
	LoggingLevel string              `yaml:"loggingLevel"`
	CpuTemp      *string             `yaml:"cpuTemp"`
	Include      []string            `yaml:"include"`
	Exclude      []string            `yaml:"exclude"`
	Cors         *Cors               `yaml:"cors"`
}

func ReadConf

func ReadConf(path string) (Conf, error)

type Cors

type Cors struct {
	Origin  string `yaml:"origin"`
	Methods string `yaml:"methods"`
	Headers string `yaml:"headers"`
}

type Units

type Units struct {
	Array  string `yaml:"array"`
	Cache  string `yaml:"cache"`
	Pools  string `yaml:"pools"`
	Memory string `yaml:"memory"`
}

Jump to

Keyboard shortcuts

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