config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	Period:   1 * time.Second,
	Devices:  []Device{},
	WorkZone: "undefined",
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Period   time.Duration `config:"period"`
	Devices  []Device      `config:"devices"`
	WorkZone string        `config:"work_zone"`
}

type Device

type Device struct {
	Name    string `json:"name"`
	Address string `json:"address"`
	Port    string `json:"port"`
	Method  string `json:"method"`
}

Jump to

Keyboard shortcuts

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