Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB holds database connection pools
func InitDb ¶
InitDb Initialize database connection and mke sure database is reachable Conection Options: https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
type DbConfig ¶
type DbConfig struct { DbHost string DbPort uint16 DbName string DbUser string DbPwd string //DbTimeout is Connection timeout in seconds //if could not connect to server in given time then giveup and raise error DbTimeout int //DbSSLMode flag to enable disable SSL for database connection DbSSLMode string DbPoolSize uint16 }
DbConfig is config for disk persistent database (PostgreSQL)
Click to show internal directories.
Click to hide internal directories.