Documentation ¶
Index ¶
- func NewRabbitMQ(tag string, tracing tracing.Tracing, lo logger.Logger, ...) database.RabbitMQ
- type Consumer
- type Dialer
- type Message
- type MsgSend
- type OnConnected
- type OnError
- type PendingQue
- type Producer
- type RabbitMQ
- type Session
- type Stores
- func (c *Stores) Delete(id string)
- func (c *Stores) Get(id string) (cb database.ConsumerCallback, ok bool)
- func (c *Stores) LoadClient(id string) (client *RabbitMQ, ok bool)
- func (c *Stores) LoadClientByTag(ta string) (client *RabbitMQ, ok bool)
- func (c *Stores) Put(id string, cb database.ConsumerCallback)
- func (c *Stores) StoreClient(client *RabbitMQ)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Consumer ¶
func NewConsumer ¶
func NewConsumer(tracing tracing.Tracing, lg logger.Logger, dialer *Dialer, config database.RabbitMQProviderConfig, options database.RabbitMQOptions, callback database.ConsumerCallback, store *Stores) *Consumer
type Dialer ¶
type Dialer struct { Session chan chan Session sync.RWMutex // contains filtered or unexported fields }
func (*Dialer) Dial ¶
func (c *Dialer) Dial(cx context.Context, config interfaces.RabbitMQProviderConfig, onError OnError, onConnected OnConnected)
Dial - redial connects to the URL, exiting the program when no longer possible
func (*Dialer) IsConnected ¶
type OnConnected ¶
type OnConnected func()
type PendingQue ¶
type PendingQue struct {
// contains filtered or unexported fields
}
type Producer ¶
func NewProducer ¶
func NewProducer(lg logger.Logger, dialer *Dialer, config database.RabbitMQProviderConfig, options database.RabbitMQOptions, store *Stores) *Producer
func (*Producer) SendingData ¶
type RabbitMQ ¶
func (*RabbitMQ) Consumer ¶
func (c *RabbitMQ) Consumer(options database.RabbitMQOptions, callback database.ConsumerCallback)
func (*RabbitMQ) Producer ¶
func (c *RabbitMQ) Producer(options database.RabbitMQOptions)
Click to show internal directories.
Click to hide internal directories.