Ai
1 Star 0 Fork 0

connor/exchange-api

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
events.go 586 Bytes
一键复制 编辑 原始数据 按行查看 历史
Raymond.K 提交于 2020-05-29 13:41 +08:00 . 调整目录结构
package websocket
const (
EventTypeLogin = "login"
EventTypeSubscribe = "subscribe"
EventTypeUnsubscribe = "unsubscribe"
EventTypeError = "error"
)
type EventLogin struct {
Event string `json:"event"`
Success bool `json:"success"`
}
type EventSubscribe struct {
Event string `json:"event"`
Channel string `json:"channel"`
}
type EventUnsubscribe struct {
Event string `json:"event"`
Channel string `json:"channel"`
}
type EventError struct {
Event string `json:"event"`
Message string `json:"message"`
ErrorCode int `json:"errorCode"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ccconnor/exchange-api.git
git@gitee.com:ccconnor/exchange-api.git
ccconnor
exchange-api
exchange-api
v0.3.14

搜索帮助