config

package
v0.0.0-...-c34abbc Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.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 {
	ServerAddr string  `ini:"server_addr"`
	GatewayMAC string  `ini:"gateway_id"`
	Latitude   float64 `ini:"latitude"`
	Longtitude float64 `ini:"longtitude"`
	Altitude   int32   `ini:"altitude"`

	LogDirWin   string `ini:"log_dir_win"`
	LogDirLinux string `ini:"log_dir_linux"`
	LogPrefix   string `ini:"log_prefix"`
}

func ReadConfig

func ReadConfig(path string) (Config, error)

Read Server's Config Value from "path"

func (Config) String

func (c Config) String() string

Jump to

Keyboard shortcuts

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