Documentation
¶
Index ¶
- Variables
- type Broker
- func (r *Broker) Activate()
- func (r Broker) Clone() brokers.BrokerInterface
- func (r *Broker) GetPoolSize() int
- func (r *Broker) LSend(queueName string, msg message.Message) error
- func (r *Broker) Next(queueName string) (message.Message, error)
- func (r *Broker) Send(queueName string, msg message.Message) error
- func (r *Broker) SetPoolSize(n int)
- type Client
- func (c *Client) Get(queueName string) ([]byte, error)
- func (c *Client) GetChannel() (*amqp.Channel, error)
- func (c *Client) Publish(queueName string, value []byte, Priority uint8) error
- func (c *Client) PutChannel(channel *amqp.Channel, isBad bool)
- func (c *Client) QueueDeclare(queueName string, channel *amqp.Channel) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AMQPNil = errors.New("rabbitMq get nil") ErrNoIdleChannel = errors.New("rabbitMq no idle channel") GetChanTimeout = 60 * time.Second GetChanSleepTime = 100 * time.Millisecond )
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
func NewRabbitMqBroker ¶
func (Broker) Clone ¶
func (r Broker) Clone() brokers.BrokerInterface
func (*Broker) GetPoolSize ¶
func (*Broker) SetPoolSize ¶
Click to show internal directories.
Click to hide internal directories.