queue

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 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 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
}

type QueueKey

type QueueKey string

Jump to

Keyboard shortcuts

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