Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalConfig ¶
type GlobalConfig struct { Logger LoggerConfig `yaml:"logger" json:"logger"` Data StoreConfig `yaml:"data" json:"data"` HTTP HTTPConfig `yaml:"http" json:"http"` Simulation SimulationConfig `yaml:"simulation" json:"simulation"` }
func NewConfig ¶
func NewConfig() *GlobalConfig
type HTTPConfig ¶
type HTTPConfig struct { AdminPort int `yaml:"adminPort" json:"adminPort"` // port number of the administration API server MetricsPort int `yaml:"metricsPort" json:"metricsPort"` // port number where prometheus metrics are published GrafanaPort int `yaml:"grafanaPort" json:"grafanaPort"` // port number where Grafana server is listening PrometheusPort int `yaml:"prometheusPort" json:"prometheusPort"` // port number where Prometheus server is listening }
type LoggerConfig ¶
type SimulationConfig ¶
type SimulationConfig struct { ConnectionTimeout int `yaml:"connectionTimeout" json:"connectionTimeout"` TelemetryTimeout int `yaml:"telemetryTimeout" json:"telemetryTimeout"` TwinUpdateTimeout int `yaml:"twinUpdateTimeout" json:"twinUpdateTimeout"` CommandTimeout int `yaml:"commandTimeout" json:"commandTimeout"` RegistrationAttemptTimeout int `yaml:"registrationAttemptTimeout" json:"registrationAttemptTimeout"` MaxConcurrentConnections int `yaml:"maxConcurrentConnections" json:"maxConcurrentConnections"` MaxConcurrentTwinUpdates int `yaml:"maxConcurrentTwinUpdates" json:"maxConcurrentTwinUpdates"` MaxConcurrentRegistrations int `yaml:"maxConcurrentRegistrations" json:"maxConcurrentRegistrations"` MaxConcurrentDeletes int `yaml:"maxConcurrentDeletes" json:"maxConcurrentDeletes"` MaxRegistrationAttempts int `yaml:"maxRegistrationAttempts" json:"maxRegistrationAttempts"` EnableTelemetry bool `yaml:"enableTelemetry" json:"enableTelemetry"` EnableReportedProps bool `yaml:"enableReportedProps" json:"enableReportedProps"` EnableTwinUpdateAcks bool `yaml:"enableTwinUpdateAcks" json:"enableTwinUpdateAcks"` EnableCommandAcks bool `yaml:"enableCommandAcks" json:"enableCommandAcks"` GeopointData [][3]float64 `yaml:"geopointData" json:"geopointData"` }
type StoreConfig ¶
type StoreConfig struct {
DataDirectory string `yaml:"path" json:"path"`
}
Click to show internal directories.
Click to hide internal directories.