1 Star 0 Fork 0

庞飞 / multiapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
eventer.go 362 Bytes
一键复制 编辑 原始数据 按行查看 历史
庞飞 提交于 2023-10-03 10:28 . 合并主框架
package hub
import (
"reflect"
"strings"
"github.com/golang/protobuf/proto"
)
type EventerName = string
type Eventer interface {
//Name() string
SetParam(paramPtr proto.Message)
paramData() proto.Message
ParamProto() proto.Message
}
func EventName(e Eventer) string {
tmp := strings.Split(reflect.TypeOf(e).String(), ".")
return tmp[len(tmp)-1]
}
Go
1
https://gitee.com/pangxianfei/multiapp.git
git@gitee.com:pangxianfei/multiapp.git
pangxianfei
multiapp
multiapp
v1.2.3

搜索帮助