memory

package
v0.0.0-...-aba326a Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package memory provides an in-memory FIFO queue backed by a linked list.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(o ...Option) q.Queue

New returns a new FIFO queue backed by an in-memory linked list.

Types

type Option

type Option func(*fifo)

An Option represents an optional argument to a new in-memory FIFO queue.

func Limit

func Limit(l int) Option

Limit specifies the maximum number of messages that may exist in a queue. Unbounded queues will accept messages until they exhaust available resources.

func Tagged

func Tagged(t ...q.Tag) Option

Tagged applies the provided tags to a new queue.

Jump to

Keyboard shortcuts

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