broker

package
v0.0.0-...-d95879a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2017 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuryJobFunc

func BuryJobFunc(ctx context.Context) (func(), bool)

func CancelFunc

func CancelFunc(ctx context.Context) (context.CancelFunc, bool)

func JobID

func JobID(ctx context.Context) (uint64, bool)

func New

func New(addr string, queue string) (furrow.Broker, error)

A seperate connection to Beanstalk is opened for each broker instance. This is due to how the beanstalk protocol works. A job must be deleted before a new command can be issued on the same connection. https://github.com/kr/beanstalk/issues/6

Types

This section is empty.

Jump to

Keyboard shortcuts

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