config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Disable         = "disable"
	RequireNoVerify = "require"
	Verify          = "verify-full"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConfig

type DBConfig struct {
	DBType   string
	Url      string
	Username string
	Password string
	DBName   string
	Sslmode  SSLMode
	Port     int64
}

Valid SSL modes:

  • disable - No SSL
  • require - Always SSL (skip verification)
  • verify-full - Always SSL (require verification)

type EnvConfig

type EnvConfig struct {
	Username               string
	Password               string
	EncryptionKey          []byte
	InternalDBConfig       *DBConfig
	SharedPostgresDBConfig *DBConfig
	SharedMysqlDBConfig    *DBConfig
}

func LoadEnvConfig

func LoadEnvConfig() (*EnvConfig, error)

type SSLMode

type SSLMode string

Jump to

Keyboard shortcuts

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