Documentation
¶
Index ¶
- Constants
- type Dialect
- type Option
- type Store
- func (s *Store) Cleanup(ctx context.Context) error
- func (s *Store) Get(ctx context.Context, key string) (cancellation.Request, bool, error)
- func (s *Store) Migrate(ctx context.Context) error
- func (s *Store) Request(ctx context.Context, req cancellation.Request) error
- func (s *Store) Subscribe(ctx context.Context) (<-chan cancellation.Request, error)
Constants ¶
View Source
const ( DialectPostgres = sqlutil.DialectPostgres DialectSQLite = sqlutil.DialectSQLite )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Store)
Option configures the postgres cancellation store.
func WithBatchSize ¶
WithBatchSize configures subscription batch size.
func WithDialect ¶
WithDialect sets the SQL placeholder style.
func WithPollInterval ¶
WithPollInterval configures subscription polling interval.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements cancellation.Store backed by SQL.
Click to show internal directories.
Click to hide internal directories.