Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { PostgresHost string `required:"true"` PostgresUser string `required:"true"` PostgresPassword string `required:"true"` PostgresPort int `default:"5432"` PostgresDb string `required:"true"` PostgresRequireSSL string `default:"require"` Connection *sql.DB }
Database : The configuration for Postgres
func (Database) CheckConnection ¶
CheckConnection : Check if the connection to the database is succesfull
func (Database) CloseConnection ¶
func (db Database) CloseConnection()
CloseConnection : Disconnect the connector from the database
Click to show internal directories.
Click to hide internal directories.