Documentation ¶
Index ¶
Constants ¶
View Source
const ( MessageTypeSubscribe = "subscribe" MessageTypeUnsubscribe = "unsubscribe" MessageTypePublish = "publish" MessageTypePing = "ping" MessageTypePong = "pong" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnSet ¶
type ConnSet struct {
// contains filtered or unexported fields
}
func NewConnSet ¶
func NewConnSet() *ConnSet
type Plugin ¶
type Plugin struct{}
func (*Plugin) HookMountRoutes ¶
func (*Plugin) PluginName ¶
func (*Plugin) PluginVersion ¶
type Subscribers ¶
type Subscribers struct {
// contains filtered or unexported fields
}
func NewSubscribers ¶
func NewSubscribers() *Subscribers
type Subscriptions ¶
type Subscriptions struct {
// contains filtered or unexported fields
}
func NewSubscriptions ¶
func NewSubscriptions() *Subscriptions
func (*Subscriptions) Add ¶
func (s *Subscriptions) Add(topic string)
func (*Subscriptions) All ¶
func (s *Subscriptions) All() []string
func (*Subscriptions) Remove ¶
func (s *Subscriptions) Remove(topic string)
Click to show internal directories.
Click to hide internal directories.