Documentation ¶ Index ¶ func Open(lg *zap.Logger) (*pgxpool.Pool, error) type PGConnectionData Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Open ¶ func Open(lg *zap.Logger) (*pgxpool.Pool, error) It's up to the caller to close connection. Types ¶ type PGConnectionData ¶ type PGConnectionData struct { DB string `env:"POSTGRES_DB"` Password string `env:"POSTGRES_PASSWORD"` User string `env:"POSTGRES_USER"` Host string `env:"POSTGRES_HOST"` Port int `env:"POSTGRES_PORT"` } Source Files ¶ View all Source files conn.go Click to show internal directories. Click to hide internal directories.