16 Star 62 Fork 25

Gitee 极速下载 / Wayne

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Qihoo360/wayne
克隆/下载
message.go 585 Bytes
一键复制 编辑 原始数据 按行查看 历史
William Guo 提交于 2018-11-19 11:06 . Initialization
package message
import (
"encoding/json"
"time"
)
type Type string
const (
TypeRequest Type = "request"
TypeHook Type = "hook"
TypeTask Type = "task"
)
type Message struct {
Type Type
Data json.RawMessage
}
type RequestMessageData struct {
URI string
Controller string
Method string
User string
IP string
ResponseStatus int
ResponseBody []byte
}
type HookMessageData struct {
NamespaceId int64
AppId int64
User string
IP string
Datetime time.Time
EventKey string
Payload interface{}
}
type TaskMessageData struct{}
TypeScript
1
https://gitee.com/mirrors/Wayne.git
git@gitee.com:mirrors/Wayne.git
mirrors
Wayne
Wayne
v1.6.1

搜索帮助