enums

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 1 Imported by: 1

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.

Jump to

Keyboard shortcuts

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