memory

package
v0.0.0-...-6f34b33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL