Documentation ¶
Index ¶
- type Channel
- type ChannelService
- func (c *ChannelService) AsyncPushMessageBySid(nodeId string, route string, msg interface{}, sids []int64)
- func (c *ChannelService) Broadcast(nodeId string, route string, msg interface{})
- func (c *ChannelService) CreateChannel(name string) *Channel
- func (c *ChannelService) DestroyChannel(name string)
- func (c *ChannelService) GetChannel(name string) *Channel
- func (c *ChannelService) PushMessageBySid(nodeId string, route string, msg interface{}, sids []int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
func NewChannel ¶
func (*Channel) PushMessage ¶
Push message to all the members in the channel, exclude uid in the excludeUid.
type ChannelService ¶
type ChannelService struct {
// contains filtered or unexported fields
}
func GetChannelService ¶
func GetChannelService() *ChannelService
func (*ChannelService) AsyncPushMessageBySid ¶
func (c *ChannelService) AsyncPushMessageBySid(nodeId string, route string, msg interface{}, sids []int64)
func (*ChannelService) Broadcast ¶
func (c *ChannelService) Broadcast(nodeId string, route string, msg interface{})
func (*ChannelService) CreateChannel ¶
func (c *ChannelService) CreateChannel(name string) *Channel
func (*ChannelService) DestroyChannel ¶
func (c *ChannelService) DestroyChannel(name string)
func (*ChannelService) GetChannel ¶
func (c *ChannelService) GetChannel(name string) *Channel
func (*ChannelService) PushMessageBySid ¶
func (c *ChannelService) PushMessageBySid(nodeId string, route string, msg interface{}, sids []int64)
Click to show internal directories.
Click to hide internal directories.