Documentation ¶ Overview ¶ Package postgres implements postgres connection. Index ¶ type Option func ConnAttempts(attempts int) Option func ConnTimeout(timeout time.Duration) Option func MaxPoolSize(size int) Option type Postgres func NewPostgres(url string, opts ...Option) (*Postgres, error) func (p *Postgres) Close() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Option ¶ type Option func(*Postgres) func ConnAttempts ¶ func ConnAttempts(attempts int) Option func ConnTimeout ¶ func ConnTimeout(timeout time.Duration) Option func MaxPoolSize ¶ func MaxPoolSize(size int) Option type Postgres ¶ type Postgres struct { Builder squirrel.StatementBuilderType Pool *pgxpool.Pool // contains filtered or unexported fields } func NewPostgres ¶ func NewPostgres(url string, opts ...Option) (*Postgres, error) func (*Postgres) Close ¶ func (p *Postgres) Close() Source Files ¶ View all Source files options.gopostgres.go Click to show internal directories. Click to hide internal directories.