Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorNotConnected = errors.New("failed: not connected")
)
Functions ¶
This section is empty.
Types ¶
type ChannelPool ¶
type ChannelPool struct {
// contains filtered or unexported fields
}
ChannelPool pool struct
func NewChannelPool ¶
func NewChannelPool(opt *Options, conn *amqp.Connection) *ChannelPool
NewChannelPool create new pool with amqp channels
type Options ¶
type Options struct { Addr string PoolSize int ExchangeDeclare bool ExchangeName string ExchangeType string PoolTimeout time.Duration ReconnectDelay time.Duration }
Options config struct
type Rabbit ¶
type Rabbit struct {
// contains filtered or unexported fields
}
Rabbit service struct
func (*Rabbit) PublishMessage ¶
func (r *Rabbit) PublishMessage(msg amqp.Publishing, routingKey string) error
PublishMessage publish message to queue
Click to show internal directories.
Click to hide internal directories.