Documentation ¶
Index ¶
- type Broker
- type Client
- type Subscription
- func (s *Subscription) CompileTopicRegex(topic string) (*regexp.Regexp, error)
- func (s *Subscription) FindTopics(topic string) ([]string, error)
- func (s *Subscription) GetClientsByTopic(topic string) *SubscriptionInfo
- func (s *Subscription) Subscribe(clientId string, t message.SubscribeTopic) (message.ReasonCode, error)
- func (s *Subscription) Unsubscribe(clientId, topic string)
- func (s *Subscription) UnsubscribeAll(clientId string)
- type SubscriptionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct { MessageEvent chan interface{} // contains filtered or unexported fields }
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
func NewSubscription ¶
func NewSubscription() *Subscription
func (*Subscription) CompileTopicRegex ¶
func (s *Subscription) CompileTopicRegex(topic string) (*regexp.Regexp, error)
func (*Subscription) FindTopics ¶
func (s *Subscription) FindTopics(topic string) ([]string, error)
func (*Subscription) GetClientsByTopic ¶
func (s *Subscription) GetClientsByTopic(topic string) *SubscriptionInfo
func (*Subscription) Subscribe ¶
func (s *Subscription) Subscribe(clientId string, t message.SubscribeTopic) (message.ReasonCode, error)
func (*Subscription) Unsubscribe ¶
func (s *Subscription) Unsubscribe(clientId, topic string)
func (*Subscription) UnsubscribeAll ¶
func (s *Subscription) UnsubscribeAll(clientId string)
Click to show internal directories.
Click to hide internal directories.