config

package
Version: v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ROLLOVER = 100000

Variables

This section is empty.

Functions

Types

type Config

type Config struct {
	File             string
	BindAddress      *net.UDPAddr
	BroadcastAddress *net.UDPAddr
	ListenAddress    *net.UDPAddr
	Devices          map[uint32]*Device
}

func NewConfig

func NewConfig() *Config

func (*Config) Load

func (c *Config) Load(path string) error

func (*Config) Verify

func (c *Config) Verify() error

type Device

type Device struct {
	Address  *net.UDPAddr
	Rollover uint32
	Door     []string
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL