cfg

package
v0.0.0-...-d3acafa Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2016 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version        string
	ServicePort    int    `toml:"service_port"`
	RFIDurl        string `toml:"rfid_url"`
	RFIDRresource  string `toml:"rfid_resource"`
	ToggleDuration int    `toml:"toggle_duration"`
	TogglePin      string `toml:"toggle_pin"`
	SerialName     string `toml:"serial_name"`
	SerialBaud     int    `toml:"serial_baud"`
}

func ReadConfig

func ReadConfig(configFile string) (Config, error)

Jump to

Keyboard shortcuts

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