config

package
v0.0.0-...-354a964 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 2 Imported by: 0

README

config

You can put all config-getting related stuff in here. When you need to get a config for something new, just create a new file and follow the example of database.

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