config

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMSConfiguration

type SMSConfiguration struct {
	CAFile     string `json:"cafile"`
	ServerCert string `json:"servercert"`
	ServerKey  string `json:"serverkey"`
	Password   string `json:"password"`

	BackendAddress            string `json:"smsdbaddress"`
	VaultToken                string `json:"vaulttoken"`
	DisableTLS                bool   `json:"disable_tls"`
	BackendAddressEnvVariable string `json:"smsdburlenv"`
}

SMSConfiguration loads up all the values that are used to configure backend implementations TODO: Review these and see if they can be created/discovered dynamically

var SMSConfig *SMSConfiguration

SMSConfig is the structure that stores the configuration

func ReadConfigFile

func ReadConfigFile(file string) (*SMSConfiguration, error)

ReadConfigFile reads the specified smsConfig file to setup some env variables

Jump to

Keyboard shortcuts

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