queue

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

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