2 Star 6 Fork 5

Plato / rpc-go-backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
testcaller_impl.go 981 Bytes
一键复制 编辑 原始数据 按行查看 历史
// Generated by the go idl tools. DO NOT EDIT 2022-03-17 11:27:42
// source: box_example
package example
import "context"
type TestCallerImpl struct {
name string
}
func NewTestCaller() *TestCallerImpl {
service := &TestCallerImpl{}
return service
}
func (sp *TestCallerImpl) GetUUID() uint64 {
return 8590810067174448481
}
func (sp *TestCallerImpl) GetNickName() string {
return "8590810067174448481"
}
func (sp *TestCallerImpl) OnAfterFork(ctx context.Context) bool {
//add this service to framework, do not call rpc method in this function
return true
}
func (sp *TestCallerImpl) OnTick() bool {
//tick function in main goroutine
return true
}
func (sp *TestCallerImpl) OnBeforeDestroy() bool {
//tick function in main goroutine
return true
}
func (sp *TestCallerImpl) SetInfo(ctx context.Context, _1 string) (err error) {
sp.name = _1
return
}
func (sp *TestCallerImpl) GetInfo(ctx context.Context) (ret1 string, err error) {
panic("test case panic!")
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/dennis-kk/rpc-go-backend.git
git@gitee.com:dennis-kk/rpc-go-backend.git
dennis-kk
rpc-go-backend
rpc-go-backend
v0.4.14

搜索帮助

344bd9b3 5694891 D2dac590 5694891