brokers

package
v2.0.0-...-bb5fec0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisBroker

type RedisBroker struct {
	Client    *redis.Client
	QueueName string
}

RedisBroker implements CeleryBroker interface for Redis connection should be handled by caller

func (*RedisBroker) Get

func (b *RedisBroker) Get() ([]byte, error)

Get - "BRPOP" "celery" "celery\x06\x163" "celery\x06\x166" "celery\x06\x169" "1"

func (*RedisBroker) Set

func (b *RedisBroker) Set(payload []byte) error

Set - "LPUSH" "celery" data

Jump to

Keyboard shortcuts

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