Documentation
¶
Index ¶
Constants ¶
View Source
const ( MessageFailedToConnectToDatabase = "{ERROR_DATABASE} failed to connect with postgres database" MessageFailedToVerifyIsAvailable = "{ERROR_DATABASE} failed to get database while checking if is available" MessageWarningDefaultDatabaseConnection = "{WARN} your user or password for connection with database " + "is default content, please change for you best security" )
View Source
const ( EnvRelationalURI = "HORUSEC_DATABASE_SQL_URI" EnvRelationalLogMode = "HORUSEC_DATABASE_SQL_LOG_MODE" DefaultUsernameAndPassword = "root:root" )
Variables ¶
View Source
var ErrorConnectingToDB = errors.New("{ERROR_DATABASE} error connecting to db, use this format string for " + "connection in " + EnvRelationalURI + ": 'host=localhost user=username password=user_password dbname=db_name " + "port=5432 sslmode=disable TimeZone=Asia/Shanghai'")
View Source
var ErrorNotFoundRecords = errors.New("{ERROR_DATABASE} database not found records")
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.