Documentation
¶
Index ¶
- type Broker
- func (b *Broker) AddSubscriber(subscriberReq models.AddSubscriber) error
- func (b *Broker) CreateQueue(name string, bufferSize int) error
- func (b *Broker) Publish(publishReq models.PublishReq) error
- func (b *Broker) PublishToAll(queueName, message string) error
- func (b *Broker) RemoveSubscriber(subscriberId uint, queueName string) error
- func (b *Broker) Subscribe(queueName string) (string, error)
- func (b *Broker) SubscribeById(queueName string, subscriberId uint) (string, error)
- func (b *Broker) SubscriberList(queueName string) ([]*models.SubscriberResp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
func (*Broker) AddSubscriber ¶
func (b *Broker) AddSubscriber(subscriberReq models.AddSubscriber) error
func (*Broker) PublishToAll ¶
func (*Broker) RemoveSubscriber ¶
func (*Broker) SubscribeById ¶
func (*Broker) SubscriberList ¶
func (b *Broker) SubscriberList(queueName string) ([]*models.SubscriberResp, error)
Click to show internal directories.
Click to hide internal directories.