queue

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2016 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(file string)

Init is a main entry point for package

func Length

func Length(queue string) uint64

Length returns queue length

func Push

func Push(queue string, data interface{}) (err error)

Push adds item to queue

func Remove

func Remove(queue string, _id string) error

Remove removes item from queue by provided string _id property

func Unshift

func Unshift(queue string) (interface{}, error)

Unshift returns item from queue with FIFO algorythm

Types

This section is empty.

Jump to

Keyboard shortcuts

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