Documentation ¶
Index ¶
Constants ¶
View Source
const ( MainDatabaseWrite = "AIRDB_MAIN_DATABASE_WRITE" MainDatabaseRead = "AIRDB_MAIN_DATABASE_READ" SecondDatabaseWrite = "AIRDB_SECOND_DATABASE_WRITE" SecondDatabaseRead = "AIRDB_SECOND_DATABASE_READ" )
Variables ¶
View Source
var DefaultDBs = []string{
"MainDatabaseWrite",
"MainDatabaseRead",
}
Functions ¶
func InitDefaultDB ¶ added in v0.0.11
func InitDefaultDB()
func InitTestDB ¶
InitTestDB will init the mock DB and lock the db so that the actual db will not be required.
func ReleaseTestDB ¶
func ReleaseTestDB()
ReleaseTestDB is to release the lock for other unit tests to mock db successfully.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.