config

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 2 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 {
	General struct {
		LogLevel int `mapstructure:"log_level"`
	}

	PacketForwarder struct {
		UDPBind      string `mapstructure:"udp_bind"`
		SkipCRCCheck bool   `mapstructure:"skip_crc_check"`

		Configuration []semtech.PFConfiguration `mapstructure:"configuration"`
	} `mapstructure:"packet_forwarder"`

	Backend struct {
		MQTT mqtt.BackendConfig
	}
	Metrics struct {
		Prometheus struct {
			EndpointEnabled bool `mapstructure:"endpoint_enabled"`
			Bind            string
		}
	}
}

Config defines the configuration structure.

var C Config

C holds the global configuration.

Jump to

Keyboard shortcuts

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