config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2017 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoardConfig

type BoardConfig struct {
	Serial string
	Dev    map[string]DeviceConfig
}

BoardConfig represents configuration options for a connected arduino

type DeviceConfig

type DeviceConfig struct {
	Mode     string
	Inverted bool
	Pins     []string
}

DeviceConfig represents configuration options of a single device

type RedisConfig

type RedisConfig struct {
	Host  string
	Topic string
}

RedisConfig represents configuration options for the redis broker

type TomlConfig

type TomlConfig struct {
	Redis  RedisConfig
	Boards map[string]BoardConfig
}

TomlConfig represents a parsed config file

func LoadConfig

func LoadConfig(filename string) (TomlConfig, error)

LoadConfig loads and parses a config file

Jump to

Keyboard shortcuts

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