config

package
v0.0.0-...-11aac9a Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteConfig

func WriteConfig(path string, config TomlConfig) error

Types

type InterfaceConfig

type InterfaceConfig struct {
	Path  string
	Type  string
	Speed uint
}

type TomlConfig

type TomlConfig struct {
	LogLevel   string
	MapFile    string
	Server     serverConfig
	Mqtt       mqttConfig
	Interfaces map[string]InterfaceConfig
	Vessel     VesselConfig
}

func ReadConfig

func ReadConfig(path string) (TomlConfig, error)

type VesselConfig

type VesselConfig struct {
	Name         string
	Manufacturer string
	Model        string
	Year         int
	Mmsi         int
	Callsign     string
	Registration string
	Uuid         string
	Uuid0        string `toml:"-"`
	Uuid1        string `toml:"-"`
	Uuid2        string `toml:"-"`
	Uuid3        string `toml:"-"`
	Uuid4        string `toml:"-"`
}

Jump to

Keyboard shortcuts

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