Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresPersistence ¶
type PostgresPersistence struct { // define connection settions for persistence DatabaseURL string // define postgres session/connection pool Session *pgxpool.Pool }
func (*PostgresPersistence) Close ¶
func (db *PostgresPersistence) Close()
function used to close persistence connections. should be called in defer block/statement
func (*PostgresPersistence) Connect ¶
func (db *PostgresPersistence) Connect() error
function used to connect/generate connection pool to postgres instance
Click to show internal directories.
Click to hide internal directories.