Documentation
¶
Index ¶
Constants ¶
View Source
const ( // EnvDSN is the key of the DSN for the Postgres database EnvDSN = "URU_FRAMEWORKS_SECURE_NOTES_POSTGRES_DSN" // EnvMaxOpenConnections is the key of the maximum number of open connections for the Postgres database EnvMaxOpenConnections = "URU_FRAMEWORKS_SECURE_NOTES_POSTGRES_MAX_OPEN_CONNECTIONS" // EnvMaxIdleConnections is the key of the maximum number of idle connections for the Postgres database EnvMaxIdleConnections = "URU_FRAMEWORKS_SECURE_NOTES_POSTGRES_MAX_IDLE_CONNECTIONS" )
Variables ¶
View Source
var ( // DSN is the DSN for the Postgres database DSN string // MaxOpenConnections is the maximum number of open connections for the Postgres database MaxOpenConnections int // MaxIdleConnections is the maximum number of idle connections for the Postgres database MaxIdleConnections int // PoolHandler is the Postgres pool handler PoolHandler godatabasespgxpool.PoolHandler // PoolService is the Postgres pool service PoolService *Service )
Functions ¶
Types ¶
type Service ¶
type Service struct {
godatabasespgxpool.Service
}
Service is the Postgres service struct
func NewService ¶
NewService creates a new Postgres service
Click to show internal directories.
Click to hide internal directories.