utils

package
v0.0.0-...-bd95e74 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(appname string, args ...string) (string, error)

func ExecuteVcGen

func ExecuteVcGen(vcGenCmd, command string, parameters ...string) (string, error)

Types

type ListenConfig

type ListenConfig struct {
	Address     string `yaml:"address"`
	MetricsPath string `yaml:"metricspath"`
}

type LocalConfig

type LocalConfig struct {
	Listen    ListenConfig    `yaml:"listen"`
	Raspberry RaspberryConfig `yaml:"raspberry"`
}

func ParseConfig

func ParseConfig() (*LocalConfig, error)

type RaspberryConfig

type RaspberryConfig struct {
	VcGenCmd         string `yaml:"vcgencmd"`
	DisableThrottled bool   `yaml:"disable_throttled"`
	Model            string `yaml:"model"`
}

Jump to

Keyboard shortcuts

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