manager

package
v0.0.0-...-abd9a1d Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broadcast

func Broadcast(bcPro *BCWriteProto)

Broadcast 广播

func Connect

func Connect(conn *ws.Conn, group string)

Connect 客户端连接

func Init

func Init(createCh, destroyCh, joinCh chan<- *C)

Init 初始化客户端管理器

func JoinGroup

func JoinGroup(clientID, group string) error

func LeaveAllGroup

func LeaveAllGroup(clientID string) error

func LeaveGroup

func LeaveGroup(clientID, group string) error

func OnlineClient

func OnlineClient() []string

func SendToClient

func SendToClient(pro *WriteProto)

SendToClient 发送客户端消息

func SendToGroup

func SendToGroup(gPro *GWriteProto)

SendToGroup 发送组消息

Types

type BCReadProto

type BCReadProto bcProto

clientManager 客户端管理器

type BCWriteProto

type BCWriteProto bcProto

clientManager 客户端管理器

type C

type C = client

Client WS客户端

type GReadProto

type GReadProto gProto

clientManager 客户端管理器

type GWriteProto

type GWriteProto gProto

clientManager 客户端管理器

type ReadProto

type ReadProto proto

clientManager 客户端管理器

type WriteProto

type WriteProto proto

clientManager 客户端管理器

Jump to

Keyboard shortcuts

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