manager

package
v0.0.0-...-b89eba7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatMap

type ChatMap struct {
	// contains filtered or unexported fields
}

func NewChatMap

func NewChatMap() *ChatMap

func (*ChatMap) ForEach

func (c *ChatMap) ForEach(accountID int64, f EachFunc)

ForEach 遍历指定账号的全部设备

func (*ChatMap) HasSID

func (c *ChatMap) HasSID(sID string) bool

HasSID 判断SID是否已经存在

func (*ChatMap) Leave

func (c *ChatMap) Leave(s socketio.Conn)

Leave 去除设备

func (c *ChatMap) Link(s socketio.Conn, accountID int64)

Link 添加设备

func (*ChatMap) Send

func (c *ChatMap) Send(accountID int64, event string, args ...interface{})

Send 给指定账号的全部设备推送消息

func (*ChatMap) SendAll

func (c *ChatMap) SendAll(event string, args ...interface{})

SendAll 给全部设备推送消息

func (*ChatMap) SendMany

func (c *ChatMap) SendMany(accountIDs []int64, event string, args ...interface{})

SendMany 给指定多个账号的全部设备推送消息

type ConnMap

type ConnMap struct {
	// contains filtered or unexported fields
}

type EachFunc

type EachFunc socketio.EachFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL