Documentation ¶
Index ¶
- type Channel
- type Connection
- type RabbitMQ
- func (mq *RabbitMQ) Close() error
- func (mq *RabbitMQ) Dial() error
- func (mq *RabbitMQ) Init(_ context.Context) error
- func (mq *RabbitMQ) Publish(ctx context.Context, target string, message query.Message) error
- func (mq *RabbitMQ) Subscribe(target string, message query.Response) error
- func (mq *RabbitMQ) UnSubscribe(target string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
Channel amqp.Channel wapper
type Connection ¶
type Connection struct { *amqp.Connection // contains filtered or unexported fields }
Connection amqp.Connection wrapper
func (*Connection) Channel ¶
func (c *Connection) Channel() (*Channel, error)
Channel wrap amqp.Connection.Channel, get a auto reconnect channel
Click to show internal directories.
Click to hide internal directories.