config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigPath string
View Source
var NomadClient *api.Client
View Source
var RootDir string

Functions

func InitializeNomadClient

func InitializeNomadClient() error

func LoadConfiguration

func LoadConfiguration() error

Types

type Configuration

type Configuration struct {
	LogDir    string      `hcl:"log_dir"`
	DataDir   string      `hcl:"data_dir"`
	Listen    string      `hcl:"listen"`
	NomadHost string      `hcl:"nomad_host"`
	Drill     DrillConfig `hcl:"drill,block"`
}
var AppConfig Configuration

type DrillConfig

type DrillConfig struct {
	PCI PCIDrillConfig `hcl:"pci,block"`
}

type PCIDrillConfig

type PCIDrillConfig struct {
	Enabled   bool `hcl:"enabled"`
	Frequency int  `hcl:"frequency"`
}

Jump to

Keyboard shortcuts

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