Documentation
¶
Overview ¶
Copyright 2018 Andy Lo-A-Foe. All rights reserved. Use of this source code is governed by Apache-style license that can be found in the LICENSE file.
Copyright 2018 Andy Lo-A-Foe. All rights reserved. Use of this source code is governed by Apache-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
func (*Consumer) AnnounceQueue ¶
AnnounceQueue sets the queue that will be listened to for this connection...
func (*Consumer) Handle ¶
func (c *Consumer) Handle( d <-chan amqp.Delivery, fn ConsumerHandlerFunc, threads int, queue string, routingKey string)
Handle has all the logic to make sure your program keeps running d should be a delievey channel as created when you call AnnounceQueue fn should be a function that handles the processing of deliveries this should be the last thing called in main as code under it will become unreachable unless put int a goroutine. The q and rk params are redundent but allow you to have multiple queue listeners in main without them you would be tied into only using one queue per connection
type ConsumerHandlerFunc ¶
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}