config

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

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 11

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.

Jump to

Keyboard shortcuts

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