Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TopicChannelType topic交换机 TopicChannelType = channelType(1) // FanoutChannelType fanout 交换机 FanoutChannelType = channelType(2) // WorkerChannelType Worker交换机 WorkerChannelType = channelType(3) )
Variables ¶
View Source
var (
RabbitmqConn *amqp.Connection
)
Functions ¶
This section is empty.
Types ¶
type ChannelOptions ¶
type ChannelOptions struct {
RabbitmqURL string
}
type Connection ¶
type Consumer ¶
type Consumer interface { Init(...ConsumerOption) error Options() ConsumerOptions Shutdown() error }
type ConsumerHandle ¶
type ConsumerOption ¶
type ConsumerOption func(*ConsumerOptions)
type ConsumerOptions ¶
type ConsumerOptions struct { Uri string Tag string Key string Handle ConsumerHandle Conn *amqp.Connection Channel *amqp.Channel // contains filtered or unexported fields }
type MqChannel ¶
type MqChannel struct {
// contains filtered or unexported fields
}
func NewChannel ¶
type Options ¶
type Options struct { Url string Conn *amqp.Connection }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.