Documentation ¶
Index ¶
- Variables
- type MqService
- func (s *MqService) CountConsumerMessages(consumerId string, messageName string) (int, error)
- func (s *MqService) DeclareConsumer(consumerId string, messageName string, consumerRouteKey string) error
- func (s *MqService) DeclareExchange(name string, mode string, durable bool) error
- func (s *MqService) DeleteExchange(name string) error
- func (s *MqService) Publish(body string, exchangeName string, token string, routeKey string) (err error)
- func (s *MqService) ReloadExchange(messageName string) error
- func (s *MqService) ReloadExchanges() error
- func (s *MqService) StopAllConsumer()
- func (s *MqService) UnbindStopConsumer(consumerId string, messageName string, consumerRouteKey string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var MQ = NewMQ()
Functions ¶
This section is empty.
Types ¶
type MqService ¶
type MqService struct { }
func (*MqService) CountConsumerMessages ¶
func (*MqService) DeclareConsumer ¶
func (s *MqService) DeclareConsumer(consumerId string, messageName string, consumerRouteKey string) error
declare a consumer
func (*MqService) DeclareExchange ¶
declare a Exchange
func (*MqService) DeleteExchange ¶
delete a exchange
func (*MqService) Publish ¶
func (s *MqService) Publish(body string, exchangeName string, token string, routeKey string) (err error)
publish message to mq
func (*MqService) ReloadExchange ¶
reload one exchange
func (*MqService) ReloadExchanges ¶
reload RabbitMQ all exchanges
Click to show internal directories.
Click to hide internal directories.