config

package
v0.0.0-...-7ff6187 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 0 Imported by: 0

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 LoggerConfig struct {
	LogLevel string `yaml:"logLevel" json:"logLevel"` // logging level for the application
	LogsDir  string `yaml:"logsDir" json:"logsDir"`   // directory into which logs are written
}

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"`
}

Jump to

Keyboard shortcuts

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