chat

package
v0.0.0-...-a0761e4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OnlineMap = make(map[int64]*websocket.Conn)

创建一个全局的连接映射,用于存储每个用户对应的 WebSocket 连接

Functions

func InitChat

func InitChat()

Types

type ChatServerImplement

type ChatServerImplement struct {
	UnimplementedChatServer
}

func (*ChatServerImplement) Chat

func (c *ChatServerImplement) Chat(ctx context.Context, req *ChatRequest) (*ChatResponse, error)

Jump to

Keyboard shortcuts

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