Documentation ¶
Overview ¶
Package memory provides an in-process, in-memory implementation of Coordinate. There is no persistence on this job queue, nor is there any automatic sharing. The entire system is behind a single global semaphore to protect against concurrent updates; in some cases this can limit performance in the name of correctness.
This is mostly intended as a simple reference implementation of Coordinate that can be used for testing, including in-process testing of higher-level components. It is generally tuned for correctness, not performance or scalability.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() coordinate.Coordinate
New creates a new Coordinate interface that operates purely in memory.
func NewWithClock ¶
func NewWithClock(clk clock.Clock) coordinate.Coordinate
NewWithClock returns a new in-memory Coordinate interface, with an explicitly specified time source. This is intended for use in tests.
Types ¶
This section is empty.