Versions in this module Expand all Collapse all v0 v0.0.1 May 6, 2023 Changes in this version + type Postgres struct + func Connect(ctx context.Context, cfg *pgxpool.Config, now func() time.Time) (*Postgres, error) + func (p *Postgres) Check(ctx context.Context) error + func (p *Postgres) Close() + func (p *Postgres) CreateAddress(ctx context.Context, address *storage.Address) error + func (p *Postgres) ExecTx(ctx context.Context, fn func(tx pgx.Tx) error, op errors.Op) error + func (p *Postgres) GetAddress(ctx context.Context, cep string) (*storage.Address, error) + func (p *Postgres) ListAddresses(ctx context.Context, params storage.ListParams) ([]*storage.Address, error) + func (p *Postgres) UpdateAddress(ctx context.Context, cep string, updater storage.Updater) error