queue

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(k QueueKey) error

func Depth added in v0.9.0

func Depth(k QueueKey) int64

func Pop

func Pop(k QueueKey) (error, []byte)

func PopTimeout

func PopTimeout(k QueueKey, timeoutInSeconds time.Duration) (error, []byte)

func Push

func Push(k QueueKey, v []byte) error

func ReadChan

func ReadChan(k QueueKey) chan []byte

func Register

func Register(h Queue)

Types

type Queue

type Queue interface {
	Push(QueueKey, []byte) error
	Pop(QueueKey, time.Duration) (error, []byte)
	ReadChan(k QueueKey) chan []byte
	Close(QueueKey) error
	Depth(QueueKey) int64
}

type QueueKey

type QueueKey string

Jump to

Keyboard shortcuts

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