config

package
v0.0.0-...-2e32a30 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 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 {
	LogLevel          string     `yaml:"logLevel"`
	ClusterId         string     `yaml:"clusterId"`
	OrganizationId    string     `yaml:"organizationId"`
	DisabledProviders []string   `yaml:"disabledProviders"`
	IgnoredNamespaces []string   `yaml:"ignoredNamespaces"`
	MQTT              MQTTConfig `yaml:"mqtt"`
}

func ReadConfig

func ReadConfig() (Config, error)

type MQTTConfig

type MQTTConfig struct {
	Broker             string `yaml:"broker"`
	Topic              string `yaml:"topic"`
	Qos                int    `yaml:"qos"`
	TlsKeyFile         string `yaml:"tlsKeyFile"`
	TlsCertificateFile string `yaml:"tlsCertificateFile"`
	CACertificate      string `yaml:"caCertificate"`
	Username           string `yaml:"username"`
	Password           string `yaml:"password"`
	ClientID           string `yaml:"clientID"`
	CleanSession       bool   `yaml:"cleanSession"`
}

Jump to

Keyboard shortcuts

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