queue

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

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

Go to latest
Published: Jun 18, 2017 License: Apache-2.0 Imports: 3 Imported by: 8

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 Register

func Register(h Queue)

Types

type Queue

type Queue interface {
	Push(QueueKey, []byte) error
	Pop(QueueKey, time.Duration) (error, []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