Documentation ¶ Index ¶ type Config type Option func WithHost(host string) Option func WithPassword(password string) Option func WithPort(port int) Option func WithUser(user string) Option type Postgres func New(t *testing.T, opts ...Option) *Postgres func (p *Postgres) DB() *pgxpool.Pool func (p *Postgres) DSN() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { // contains filtered or unexported fields } type Option ¶ type Option func(*Config) func WithHost ¶ func WithHost(host string) Option func WithPassword ¶ func WithPassword(password string) Option func WithPort ¶ func WithPort(port int) Option func WithUser ¶ func WithUser(user string) Option type Postgres ¶ type Postgres struct { // contains filtered or unexported fields } func New ¶ func New(t *testing.T, opts ...Option) *Postgres func (*Postgres) DB ¶ func (p *Postgres) DB() *pgxpool.Pool func (*Postgres) DSN ¶ func (p *Postgres) DSN() string Source Files ¶ View all Source files testpostgres.go Click to show internal directories. Click to hide internal directories.