1 Star 0 Fork 0

hacker61/okex_v5sdk_go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
config
rest
utils
ws
wImpl
wInterface
utils.go
ws_cli.go
ws_contants.go
ws_jrpc.go
ws_jrpc_test.go
ws_middleware.go
ws_op.go
ws_priv_channel.go
ws_priv_channel_test.go
ws_pub_channel.go
ws_pub_channel_test.go
ws_test.go
LICENSE
go.mod
go.sum
readme.md
克隆/下载
ws_middleware.go 357 Bytes
一键复制 编辑 原始数据 按行查看 历史
Qiang Wang 提交于 4年前 . init
package ws
import "fmt"
type ReqFunc func(...interface{}) (res bool, msg *Msg, err error)
type Decorator func(ReqFunc) ReqFunc
func handler(h ReqFunc, decors ...Decorator) ReqFunc {
for i := range decors {
d := decors[len(decors)-1-i]
h = d(h)
}
return h
}
func preprocess() (res bool, msg *Msg, err error) {
fmt.Println("preprocess")
return
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/hacker61/okex_v5sdk_go.git
git@gitee.com:hacker61/okex_v5sdk_go.git
hacker61
okex_v5sdk_go
okex_v5sdk_go
v1.0.3

搜索帮助