config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{}

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	Name         string `yaml:"name"`
	Pin          string `yaml:"pin"`
	Port         string `yaml:"port"`
	StorageDir   string `yaml:"storage-dir"`
	Manufacturer string `yaml:"manufacturer"`
	SerialNumber string `yaml:"serial-number"`
	Model        string `yaml:"model"`
	Firmware     string `yaml:"firmware"`
}

type Config

type Config struct {
	Metric   Metrics `yaml:"metrics"`
	Bridge   `yaml:"bridge"`
	Services []Service `yaml:"services"`
}

func Load

func Load(f string) (Config, error)

func (*Config) ServiceNames

func (c *Config) ServiceNames() (list []string)

type Metrics

type Metrics struct {
	Address string `yaml:"address"`
}

type Service

type Service struct {
	Name       string   `yaml:"name"`
	Command    []string `yaml:"command,flow"`
	Autostart  bool     `yaml:"autostart"`
	Workdir    string   `yaml:"work-dir"`
	Env        []string `yaml:"env"`
	StopSignal string   `yaml:"stop-signal"`
}

Jump to

Keyboard shortcuts

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