package
0.0.0-20200707133025-6cd7eb24fa2e
Repository: https://github.com/gost/server.git
Documentation: pkg.go.dev

# Functions

GetConfig retrieves a new configuration from the given config file Fatal when config does not exist or cannot be read.
SetEnvironmentVariables changes config settings when certain environment variables are found.

# Constants

DefaultMaxEntries is used when config maxEntries is empty or $top exceeds this default value.
SensorThingsAPIVersion specifies the supported SensorThings API version.
ServerVersion specifies the current GOST Server version.

# Variables

CurrentConfig will be set after loading so it can be accessed from outside.

# Structs

Config contains the settings for the Http server, databases and mqtt.
DatabaseConfig contains the database server information, can be overruled by environment variables.
LoggerConfig contains the logging configuration used to initialize the logger.
MQTTConfig contains the MQTT client information.
ServerConfig contains the general server information.