Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { CAFile string `json:"ca-file"` ServerCert string `json:"server-cert"` ServerKey string `json:"server-key"` Password string `json:"password"` DatabaseIP string `json:"database-ip"` DatabaseType string `json:"database-type"` PluginDir string `json:"plugin-dir"` EtcdIP string `json:"etcd-ip"` EtcdCert string `json:"etcd-cert"` EtcdKey string `json:"etcd-key"` EtcdCAFile string `json:"etcd-ca-file"` GrpcServerCert string `json:"grpc-server-cert"` GrpcServerKey string `json:"grpc-server-key"` GrpcCAFile string `json:"grpc-ca-file"` GrpcEnableTLS string `json:"grpc-enable-tls"` GrpcServerNameOverride string `json:"grpc-server-name-override"` ServicePort string `json:"service-port"` KubernetesLabelName string `json:"kubernetes-label-name"` LogLevel string `json:"log-level"` MaxRetries string `json:"max-retries"` }
Configuration loads up all the values that are used to configure backend implementations
func GetConfiguration ¶
func GetConfiguration() *Configuration
GetConfiguration returns the configuration for the app. It will try to load it if it is not already loaded.
func SetConfigValue ¶
func SetConfigValue(key string, value string) *Configuration
SetConfigValue sets a value in the configuration This is mostly used to customize the application and should be used carefully.
Click to show internal directories.
Click to hide internal directories.