Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string
Version defines the version.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { General struct { LogLevel int `mapstructure:"log_level"` } ChirpStack struct { API struct { APIKey string `mapstructure:"api_key"` Server string `mapstructure:"server"` Insecure bool `mapstructure:"insecure"` } `mapstructure:"api"` Integration struct { MQTT struct { Server string `mapstructure:"server"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` } `mapstructure:"mqtt"` } `mapstructure:"integration"` Gateway struct { Backend struct { MQTT struct { Server string `mapstructure:"server"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` } `mapstructure:"mqtt"` } `mapstructure:"backend"` } `mapstructure:"gateway"` } `mapstructure:"chirpstack"` Simulator []struct { TenantID string `mapstructure:"tenant_id"` Duration time.Duration `mapstructure:"duration"` ActivationTime time.Duration `mapstructure:"activation_time"` Device struct { Count int `mapstructure:"count"` UplinkInterval time.Duration `mapstructure:"uplink_interval"` FPort uint8 `mapstructure:"f_port"` Payload string `mapstructure:"payload"` Frequency int `mapstructure:"frequency"` Bandwidth int `mapstructure:"bandwidth"` SpreadingFactor int `mapstructure:"spreading_factor"` } `mapstructure:"device"` Gateway struct { MinCount int `mapstructure:"min_count"` MaxCount int `mapstructure:"max_count"` EventTopicTemplate string `mapstructure:"event_topic_template"` CommandTopicTemplate string `mapstructure:"command_topic_template"` } `mapstructure:"gateway"` } `mapstructure:"simulator"` Prometheus struct { Bind string `mapstructure:"bind"` } `mapstructure:"prometheus"` }
Config defines the configuration.
var C Config
C holds the global configuration.
Click to show internal directories.
Click to hide internal directories.