Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
// Get returns the current pause state of a queue. A queue with no entry
// returns the zero state (not paused) and no error. A non-nil error means
// the backend could not be read, not that the queue is unpaused; a caller
// that enforces a switch must not fail open on it. Implementations must be
// safe for concurrent use.
Get(ctx context.Context, queue string) (entity.QueuePause, error)
}
Store is the source of per-queue pause state. It reports the switches and decides nothing; enforcement lives in the services that resolve it.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package fake provides an in-memory queuepause.Store for tests and examples.
|
Package fake provides an in-memory queuepause.Store for tests and examples. |
|
Package file provides a YAML-file-backed implementation of queuepause.Store.
|
Package file provides a YAML-file-backed implementation of queuepause.Store. |
|
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
|
Package noop provides a queuepause.Store under which no queue is ever paused.
|
Package noop provides a queuepause.Store under which no queue is ever paused. |
Click to show internal directories.
Click to hide internal directories.