Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶ added in v1.3.0
Pagination is a struct designed to encapsulate pagination response payload data.
func (*Pagination) SetItems ¶ added in v1.3.0
func (p *Pagination) SetItems(items any)
SetItems set an array of any struct in items.
type PostgresConnection ¶
type PostgresConnection struct { ConnectionStringPrimary string ConnectionStringReplica string PrimaryDBName string ReplicaDBName string ConnectionDB *dbresolver.DB Connected bool Component string Logger mlog.Logger }
PostgresConnection is a hub which deal with postgres connections.
func (*PostgresConnection) Connect ¶
func (pc *PostgresConnection) Connect() error
Connect keeps a singleton connection with postgres.
func (*PostgresConnection) GetDB ¶
func (pc *PostgresConnection) GetDB() (dbresolver.DB, error)
GetDB returns a pointer to the postgres connection, initializing it if necessary.
Click to show internal directories.
Click to hide internal directories.