config

package
v0.0.0-...-1eee0f7 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: BSD-3-Clause Imports: 5 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 {
	MqttServer   string `json:"mqtt_server,omitempty"`
	MqttClientId string `json:"mqtt_clientid,omitempty"`

	AcserverUrl    string `json:"acserver_url,omitempty"`
	AcserverApiKey string `json:"acserver_key,omitempty"`

	LdapEnable        bool   `json:"ldap_enable,omitempty"`
	LdapServer        string `json:"ldap_server,omitempty"`
	LdapBindDN        string `json:"ldap_binddn,omitempty"`
	LdapBindPW        string `json:"ldap_bindpw,omitempty"`
	LdapBaseDN        string `json:"ldap_basedn,omitempty"`
	LdapUserOU        string `json:"ldap_userou,omitempty"`
	LdapGroupOU       string `json:"ldap_groupou,omitempty"`
	LdapSkipTLSVerify bool   `json:"ldap_skipverify,omitempty"`

	RedisEnable bool   `json:"redis_enable,omitempty"`
	RedisServer string `json:"redis_server,omitempty"`

	LogJSON bool `json:"log_json"`

	AdminGroups []string `json:"admin_groups"`
}

func GetCombinedConfig

func GetCombinedConfig(filename string) Config

func GetConfigurationFromEnvironment

func GetConfigurationFromEnvironment() Config

func GetConfigurationFromFile

func GetConfigurationFromFile(filename string) Config

func (*Config) Validate

func (c *Config) Validate() bool

Jump to

Keyboard shortcuts

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