Documentation
¶
Index ¶
Constants ¶
View Source
const HandlerAck uint8 = 0
View Source
const HandlerDoNothing uint8 = 3
View Source
const HandlerReject uint8 = 2
View Source
const HandlerRequeue uint8 = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmqpSender ¶
type AmqpSender struct {
Conn *amqp.Connection
Exchange string
RoutingKey string
}
func NewAmqpSender ¶
func NewAmqpSender(conn *amqp.Connection, exchange string, routingKey string) *AmqpSender
func (AmqpSender) Send ¶
func (a AmqpSender) Send(p amqp.Publishing) error
type HandledIds ¶
type MapOfHandlers ¶ added in v1.1.0
type MapOfHandlers map[string]JobHandler
type OnHandlerFails ¶
type RunEntry ¶
type RunEntry struct {
// contains filtered or unexported fields
}
func NewRunEntry ¶
func OneRunEntry ¶
type Sender ¶
type Sender interface {
Send(p amqp.Publishing) error
}
type StubJob ¶
type StubJob struct {
// contains filtered or unexported fields
}
func NewStubJob ¶
func NewStubJob(fn func()) *StubJob
type StubJobHandler ¶
type StubJobHandler struct {
// contains filtered or unexported fields
}
func NewStubJobHandler ¶
func NewStubJobHandler(fn func(d amqp.Delivery) (uint8, error)) *StubJobHandler
type StubRecipient ¶
type StubRecipient struct {
// contains filtered or unexported fields
}
func NewStubRecipient ¶
func NewStubRecipient(job Job, err error) *StubRecipient
func NoErrorStubRecipient ¶
func NoErrorStubRecipient(job Job) *StubRecipient
func (StubRecipient) Subscribe ¶
func (s StubRecipient) Subscribe() (Job, error)
type StubSender ¶
type StubSender struct {
// contains filtered or unexported fields
}
func NewStubSender ¶
func NewStubSender(fn func(p amqp.Publishing) error) *StubSender
func (StubSender) Send ¶
func (f StubSender) Send(p amqp.Publishing) error
Click to show internal directories.
Click to hide internal directories.