合并代码

This commit is contained in:
Hiven
2023-07-26 11:09:18 +08:00
20 changed files with 782 additions and 29 deletions

18
constants/websocket.go Normal file
View File

@@ -0,0 +1,18 @@
package constants
type websocket string
// websocket消息类型
const (
//鉴权失败
WEBSOCKET_UNAUTH = "unAuth"
//ws连接成功
WEBSOCKET_CONNECT_SUCCESS = "connect-success"
//心跳信息
WEBSOCKET_HEARTBEAT = "heartbeat"
//图片渲染
WEBSOCKET_RENDER_IMAGE = "render-image"
)
// 云渲染通知需要的签名字符串
const RENDER_NOTIFY_SIGN_KEY = "fusen-render-notify-%s-%d"