Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configs ¶
type Configs struct {
Host string
Port string
Username string
Password string
Database string
SSLMode string
MaxOpenedConnections int
ApplicationName string
ConnectionMaxIdleTime time.Duration
ConnectionMaxLifeTime time.Duration
HealthCheckPeriod time.Duration
ConnectTimeout time.Duration
MaxConnLifeTimeJitter time.Duration
}
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewPostgresConnection ¶
func NewPostgresConnection(ctx context.Context, config Configs) *Connection
func (*Connection) GetPool ¶
func (r *Connection) GetPool() *pgxpool.Pool
func (*Connection) Stop ¶
func (r *Connection) Stop()
Click to show internal directories.
Click to hide internal directories.