queue

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(uid string)

func GetByID

func GetByID(uid string) interface{}

func GetFirst

func GetFirst() interface{}

func GetLast

func GetLast() interface{}

func IsInQueue

func IsInQueue(uid string) bool

func Put

func Put(uid string, data interface{})

Types

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue() (q *Queue)

func (*Queue) Delete

func (q *Queue) Delete(uid string)

func (*Queue) GetByID

func (q *Queue) GetByID(uid string) interface{}

func (*Queue) GetFirst

func (q *Queue) GetFirst() interface{}

func (*Queue) GetLast

func (q *Queue) GetLast() interface{}

func (*Queue) Init

func (*Queue) Init() *Queue

func (*Queue) IsInQueue

func (q *Queue) IsInQueue(uid string) bool

func (*Queue) Put

func (q *Queue) Put(uid string, data interface{})

Jump to

Keyboard shortcuts

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