config

package
v0.0.0-...-d6600ca Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 1 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateConnectionString

func GenerateConnectionString(hostname string, port string, databaseName string, username string, password string) string

Types

type MssqlBindingCredentials

type MssqlBindingCredentials struct {
	Hostname         string `json:"hostname"`
	Host             string `json:"host"`
	Port             string `json:"port"`
	Name             string `json:"name"`
	Username         string `json:"username"`
	User             string `json:"user"`
	Password         string `json:"password"`
	ConnectionString string `json:"connectionString"`
}

type MssqlConfig

type MssqlConfig struct {
	User               string `env:"MSSQL_USER"`
	Pass               string `env:"MSSQL_PASS"`
	Host               string `env:"MSSQL_HOST"`
	Port               string `env:"MSSQL_PORT" envDefault:"1433"`
	DbIdentifierPrefix string `env:"MSSQL_DBPREFIX" envDefault:"d"`
}

Jump to

Keyboard shortcuts

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