config

package
v0.0.0-...-fbac25e Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 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 {
	Global struct {
		Mission string
		Author  string
		Debug   bool
		Echo    bool
		Log     string
	}
	Acq struct {
		File string
	}
	Devices map[string]Device
	Serials map[string]SerialPort
	UDP     map[string]UDP
}

Config is the Go representation of toml file

func New

func New(configFile string) Config

New return a Config struct from the content of toml configFile

type Device

type Device struct {
	Type   string
	Use    bool
	Device string
}

Device struct type = NMEA, Device serial or UDPs

type SerialPort

type SerialPort struct {
	Port    string
	Baud    int
	Databit int
	Stopbit int
	Parity  string
}

SerialPort structure for a serial port

type UDP

type UDP struct {
	Port string
}

UDP struct for ethernet port

Jump to

Keyboard shortcuts

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