queue

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(k string) error

func Depth

func Depth(k string) int64

func GetQueues

func GetQueues() []string

func PauseRead

func PauseRead(k string)

func Pop

func Pop(k string) ([]byte, error)

func PopTimeout

func PopTimeout(k string, timeoutInSeconds time.Duration) ([]byte, error)

func Push

func Push(k string, v []byte) error

func ReadChan

func ReadChan(k string) chan []byte

func Register

func Register(name string, h Queue)

func ResumeRead

func ResumeRead(k string)

Types

type Queue

type Queue interface {
	Push(string, []byte) error
	Pop(string, time.Duration) ([]byte, error)
	ReadChan(k string) chan []byte
	Close(string) error
	Depth(string) int64
	GetQueues() []string
}

Jump to

Keyboard shortcuts

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