Documentation
¶
Index ¶
- Variables
- func Consume(deliveryTag string, handlerFunc HandlerFunc, count int) (*sync.WaitGroup, *sync.WaitGroup)
- func ConsumeForever(deliveryTag string, handlerFunc HandlerFunc) (*sync.WaitGroup, *sync.WaitGroup)
- func ConsumeSingle(deliveryTag string, handlerFunc HandlerFunc) (*sync.WaitGroup, *sync.WaitGroup)
- func Decode(in []byte, typ interface{}) interface{}
- func Encode(in interface{}) []byte
- func GetChannel(name string) (*amqp.Channel, error)
- func Publish(routingKey string, msg amqp.Publishing) error
- func PublishPb(msg interface{})
- func PublishPbWithChannel(c *amqp.Channel, msg interface{})
- func PublishPbWithRoutingKey(msg interface{}, routingKey string)
- func PublishWithChannel(c *amqp.Channel, routingKey string, msg amqp.Publishing) error
- func StartServerListener()
- type Delivery
- type HandlerFunc
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ConsumeForever ¶
func ConsumeSingle ¶
func PublishPbWithChannel ¶
func PublishPbWithRoutingKey ¶
func PublishPbWithRoutingKey(msg interface{}, routingKey string)
func PublishWithChannel ¶
func StartServerListener ¶
func StartServerListener()
Types ¶
type Delivery ¶
A dumb Delivery wrapper, so dependencies on this lib don't have to depened on the streadway lib
type HandlerFunc ¶
type HandlerFunc func(d Delivery)
Click to show internal directories.
Click to hide internal directories.