config

package
v0.0.0-...-fafc1b4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConfig

type DBConfig struct {
	URI      string
	Username string
	Password string
}

func GetDBConfig

func GetDBConfig() *DBConfig

GetDBConfig will get the database config values from the envrionment. They will be loaded in the init func in config.go

func GetTestDBConfig

func GetTestDBConfig() *DBConfig

GetTestDBConfig will return a test database's config values if they are set and you want to create a test database

Jump to

Keyboard shortcuts

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