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(server string, port string, databaseName string, userName string, passWord string) string

Types

type MongoBindingCredentials

type MongoBindingCredentials struct {
	Hostname string `json:"hostname"`
	Host     string `json:"host"`
	Port     string `json:"port"`
	Username string `json:"username"`
	Password string `json:"password"`
	Uri      string `json:"uri"`
	Name     string `json:"name"`
	Db       string `json:"db"`
}

type MongoDriverConfig

type MongoDriverConfig struct {
	User string `env:"SERVICE_MONGO_USER"`
	Pass string `env:"SERVICE_MONGO_PASS"`
	Host string `env:"SERVICE_MONGO_HOST"`
	Port string `env:"SERVICE_MONGO_PORT" envDefault:"27017"`
}

Jump to

Keyboard shortcuts

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