queue

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyQueue = errors.New("queue is empty")
)

Functions

func NewBQueue

func NewBQueue(db *bbolt.DB) (wbot.Queue, error)

NewBQueue

Types

type BQueue

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

BQueue

func (*BQueue) Close

func (bq *BQueue) Close() error

Close

func (*BQueue) Dequeue

func (bq *BQueue) Dequeue() (wbot.Request, error)

Dequeue

func (*BQueue) Enqueue

func (bq *BQueue) Enqueue(req wbot.Request) error

Enqueue

func (*BQueue) Next

func (bq *BQueue) Next() bool

Next

Jump to

Keyboard shortcuts

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