queue

package
v0.0.0-...-194ce67 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Qos0 = Qos(0)
	Qos1 = Qos(1)
	Qos2 = Qos(2)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Qos

type Qos uint8

type Queue

type Queue interface {
	Pub(channel string, message string, qos Qos) error
	Sub(channels interface{}, hanldler func(payload string), timeout time.Duration) error
}

func NewChanQueue

func NewChanQueue() Queue

func NewRedisQueue

func NewRedisQueue(cnf cnf.Redis) Queue

Jump to

Keyboard shortcuts

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