Documentation
¶
Overview ¶
Package postgres provides a Postgres-backed process.TimeoutStore. See ADR-0043.
Index ¶
- Variables
- func Migrate(ctx context.Context, pool *pgxpool.Pool) error
- type Option
- type Store
- func (s *Store) Cancel(ctx context.Context, id string) error
- func (s *Store) Due(ctx context.Context, now time.Time) iter.Seq2[process.Timeout, error]
- func (s *Store) Remove(ctx context.Context, id string) error
- func (s *Store) Schedule(ctx context.Context, t process.Timeout) (process.Timeout, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Schema string
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option configures New.
func WithoutMigrate ¶
func WithoutMigrate() Option
WithoutMigrate disables the automatic schema migration.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a Postgres-backed process.TimeoutStore.
func (*Store) Cancel ¶
Cancel implements process.TimeoutStore.
func (*Store) Due ¶
Due implements process.TimeoutStore.
func (*Store) Remove ¶
Remove implements process.TimeoutStore.
Click to show internal directories.
Click to hide internal directories.