config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 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 Configuration

type Configuration struct {
	AppEnv          string   `mapstructure:"BAMBOOFW_APP_ENV"`
	EnableDebugMode bool     `mapstructure:"BAMBOOFW_ENABLE_DEBUG_MODE"`
	MongoURI        string   `mapstructure:"BAMBOOFW_MONGODB_URI"`
	MongoDBName     string   `mapstructure:"BAMBOOFW_MONGODB_NAME"`
	EtcdPeerURLS    []string `mapstructure:"BAMBOOFW_ETCD_PEER_URLS"`
	EtcdUsername    string   `mapstructure:"BAMBOOFW_ETCD_USERNAME"`
	EtcdPassword    string   `mapstructure:"BAMBOOFW_ETCD_PASSWORD"`
	EtcdCACert      string   `mapstructure:"BAMBOOFW_ETCD_CA_CERT"`
	EtcdServerCert  string   `mapstructure:"BAMBOOFW_ETCD_SERVER_CERT"`
	EtcdServerKey   string   `mapstructure:"BAMBOOFW_ETCD_SERVER_KEY"`
	EtcdWatcherPath string   `mapstructure:"BAMBOOFW_ETCD_WATCHER_PATH"`
}

func New

func New() *Configuration

Jump to

Keyboard shortcuts

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