代码拉取完成,页面将自动刷新
package idlrpc
// IService user custom service framework interface
type IService interface {
// GetUUID service uuid, generated by rpc-repo
GetUUID() uint64
// GetNickName return custom service nickname !
GetNickName() string
// OnAfterFork init service by framework, user can init some custom data in this function
OnAfterFork(ctx IServiceContext) bool
// OnTick tick your service the same goroutine
OnTick() bool
//OnSubscribe will be triggered when a subscriber subscribes to an event
OnSubscribe(string, string, []byte) error
// OnCancel e triggered when a subscriber cancel
OnCancel(string, string) error
// OnBeforeDestroy before service unload, you can clean your own data in this func
OnBeforeDestroy() bool
}
// ServiceCreator service creator
type ServiceCreator func(interface{}) IService
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。