fusenapi/constants/websocket.go

30 lines
1.0 KiB
Go
Raw Normal View History

2023-07-24 11:44:28 +00:00
package constants
type websocket string
// websocket消息类型
const (
2023-07-25 04:06:19 +00:00
//鉴权失败
2023-07-26 08:47:53 +00:00
WEBSOCKET_UNAUTH = "WEBSOCKET_UNAUTH"
2023-07-24 11:44:28 +00:00
//ws连接成功
2023-07-26 08:47:53 +00:00
WEBSOCKET_CONNECT_SUCCESS = "WEBSOCKET_CONNECT_SUCCESS"
2023-08-11 02:49:29 +00:00
//请求恢复为上次连接的标识
2023-08-15 10:14:44 +00:00
WEBSOCKET_REQUEST_REUSE_LAST_CONNECT = "WEBSOCKET_REQUEST_REUSE_LAST_CONNECT"
2023-08-11 02:49:29 +00:00
//请求恢复为上次连接的标识错误
WEBSOCKET_REQUEST_RESUME_LAST_CONNECT_ERR = "WEBSOCKET_REQUEST_RESUME_LAST_CONNECT_ERR"
2023-07-24 11:44:28 +00:00
//图片渲染
2023-07-26 08:47:53 +00:00
WEBSOCKET_RENDER_IMAGE = "WEBSOCKET_RENDER_IMAGE"
2023-08-22 08:07:05 +00:00
//图片渲染失败消息
2023-08-22 08:35:22 +00:00
WEBSOCKET_RENDER_IMAGE_ERR = "WEBSOCKET_RENDER_IMAGE_ERR"
2023-08-22 08:07:05 +00:00
//传入数据格式错误
2023-07-26 08:47:53 +00:00
WEBSOCKET_ERR_DATA_FORMAT = "WEBSOCKET_ERR_DATA_FORMAT"
2023-07-27 09:07:54 +00:00
//第三方登录通知
WEBSOCKET_THIRD_PARTY_LOGIN_NOTIFY = "WEBSOCKET_THIRD_PARTY_LOGIN_NOTIFY"
2023-07-24 11:44:28 +00:00
)
2023-07-25 09:41:38 +00:00
2023-07-27 08:14:27 +00:00
// 云渲染完成通知api需要的签名字符串
2023-07-25 09:41:38 +00:00
const RENDER_NOTIFY_SIGN_KEY = "fusen-render-notify-%s-%d"
2023-07-27 09:07:54 +00:00
// 第三方登录通知api需要的签名字符串
const THIRD_PARTY_LOGIN_NOTIFY_SIGN_KEY = "fusen-render-notify-%s-%d"