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

View Source
var JdbcUrilTemplate = "jdbc:mysql://%[1]v:%[2]v/%[3]v?user=%[4]v&password=%[5]v"

Functions

func GenerateConnectionString

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

Types

type MySQLBinding

type MySQLBinding struct {
	Host     string `json:"host"`
	Hostname string `json:"hostname"`
	Port     string `json:"port"`
	Username string `json:"username"`
	User     string `json:"user"`
	Password string `json:"password"`
	Database string `json:"database"`
	JdbcUrl  string `json:"jdbcUrl"`
}

type MySQLConfig

type MySQLConfig struct {
	User string `env:"SERVICE_MYSQL_USER"`
	Pass string `env:"SERVICE_MYSQL_PASS"`
	Host string `env:"SERVICE_MYSQL_HOST"`
	Port string `env:"SERVICE_MYSQL_PORT" envDefault:"3306"`
}

Jump to

Keyboard shortcuts

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