config

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Version defines the LoRa Geo Server version.

Functions

This section is empty.

Types

type Config

type Config struct {
	General struct {
		LogLevel int `mapstructure:"log_level"`
	}

	GeoServer struct {
		API struct {
			Bind    string
			CACert  string `mapstructure:"ca_cert"`
			TLSCert string `mapstructure:"tls_cert"`
			TLSKey  string `mapstructure:"tls_key"`
		} `mapstructure:"api"`

		Backend struct {
			Name   string        `mapstructure:"name"`
			Collos collos.Config `mapstructure:"collos"`
		} `mapstructure:"backend"`
	} `mapstructure:"geo_server"`
}

Config defines the configuration structure.

var C Config

C holds the global configufation.

Jump to

Keyboard shortcuts

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