Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestConfig ¶
type TestConfig struct { AppPort string DBHost string DBPort string DBDatabase string DBUsername string DBPassword string Logger *logrus.Logger DBConn *sql.DB }
TestConfig this is a general purpose struct where we can keep the test configuration items in a singleton style object
func BootstrapTestConfig ¶
func BootstrapTestConfig() TestConfig
BootstrapTestConfig will return a db instance
func InitTestConfig ¶
func InitTestConfig() (TestConfig, error)
InitTestConfig this function will run and log out all the different environment variables if something isn't set correctly, it'll die and log the errors
Click to show internal directories.
Click to hide internal directories.