queue

package
v0.0.0-...-146c1f4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeanstalkConfig

type BeanstalkConfig struct {
	Host string
	Tube string
}

type BeanstalkProducerPusher

type BeanstalkProducerPusher struct {
	// contains filtered or unexported fields
}

func NewBeanstalkProducerPusher

func NewBeanstalkProducerPusher(config *BeanstalkConfig) *BeanstalkProducerPusher

NewBeanstalkProducerPusher new a Producer/Push of beanstalk

func (*BeanstalkProducerPusher) Push

func (bp *BeanstalkProducerPusher) Push(data []byte) error

Push is Pusher interface. push data from api request into queue.

func (*BeanstalkProducerPusher) Wait

func (bp *BeanstalkProducerPusher) Wait() []byte

Wait data from queue

type GoChannel

type GoChannel struct {
	// contains filtered or unexported fields
}

func NewGoChannelPusherWaiter

func NewGoChannelPusherWaiter(buf int) *GoChannel

func (*GoChannel) Push

func (channel *GoChannel) Push(payload []byte) error

func (*GoChannel) Wait

func (channel *GoChannel) Wait() []byte

type Handler

type Handler struct {
}

func (*Handler) HandleMessage

func (h *Handler) HandleMessage(message *nsq.Message) error

type Transform

type Transform func([]byte) (interface{}, error)

transform queue data to job

Jump to

Keyboard shortcuts

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