mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-10-16 06:53:44 +08:00
发布v2.11.5版本,更新内容请查看:https://github.com/bufanyun/hotgo/blob/v2.0/docs/guide-zh-CN/start-update-log.md
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// ================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// You can delete these comments if you wish manually maintain this interface file.
|
||||
// ================================================================================
|
||||
|
||||
@@ -13,20 +13,35 @@ import (
|
||||
|
||||
type (
|
||||
IAuthClient interface {
|
||||
// Instance 获取实例
|
||||
Instance() *tcp.Client
|
||||
// Start 启动服务
|
||||
Start(ctx context.Context)
|
||||
// Stop 停止服务
|
||||
Stop(ctx context.Context)
|
||||
// OnResponseAuthSummary 响应授权信息
|
||||
OnResponseAuthSummary(ctx context.Context, req *servmsg.AuthSummaryRes)
|
||||
// OnResponseExampleHello 一个tcp请求例子
|
||||
OnResponseExampleHello(ctx context.Context, req *servmsg.ExampleHelloRes)
|
||||
}
|
||||
ICronClient interface {
|
||||
// Instance 获取实例
|
||||
Instance() *tcp.Client
|
||||
// Start 启动服务
|
||||
Start(ctx context.Context)
|
||||
// Stop 停止服务
|
||||
Stop(ctx context.Context)
|
||||
// OnCronDelete 删除任务
|
||||
OnCronDelete(ctx context.Context, req *servmsg.CronDeleteReq) (res *servmsg.CronDeleteRes, err error)
|
||||
// OnCronEdit 编辑任务
|
||||
OnCronEdit(ctx context.Context, req *servmsg.CronEditReq) (res *servmsg.CronEditRes, err error)
|
||||
// OnCronStatus 修改任务状态
|
||||
OnCronStatus(ctx context.Context, req *servmsg.CronStatusReq) (res *servmsg.CronStatusRes, err error)
|
||||
// OnCronOnlineExec 执行一次任务
|
||||
OnCronOnlineExec(ctx context.Context, req *servmsg.CronOnlineExecReq) (res *servmsg.CronOnlineExecRes, err error)
|
||||
// OnCronDispatchLog 查看调度日志
|
||||
OnCronDispatchLog(ctx context.Context, req *servmsg.CronDispatchLogReq) (res *servmsg.CronDispatchLogRes, err error)
|
||||
// DefaultInterceptor 默认拦截器
|
||||
DefaultInterceptor(ctx context.Context, msg *tcp.Message) (err error)
|
||||
}
|
||||
)
|
||||
@@ -36,17 +51,6 @@ var (
|
||||
localCronClient ICronClient
|
||||
)
|
||||
|
||||
func CronClient() ICronClient {
|
||||
if localCronClient == nil {
|
||||
panic("implement not found for interface ICronClient, forgot register?")
|
||||
}
|
||||
return localCronClient
|
||||
}
|
||||
|
||||
func RegisterCronClient(i ICronClient) {
|
||||
localCronClient = i
|
||||
}
|
||||
|
||||
func AuthClient() IAuthClient {
|
||||
if localAuthClient == nil {
|
||||
panic("implement not found for interface IAuthClient, forgot register?")
|
||||
@@ -57,3 +61,14 @@ func AuthClient() IAuthClient {
|
||||
func RegisterAuthClient(i IAuthClient) {
|
||||
localAuthClient = i
|
||||
}
|
||||
|
||||
func CronClient() ICronClient {
|
||||
if localCronClient == nil {
|
||||
panic("implement not found for interface ICronClient, forgot register?")
|
||||
}
|
||||
return localCronClient
|
||||
}
|
||||
|
||||
func RegisterCronClient(i ICronClient) {
|
||||
localCronClient = i
|
||||
}
|
||||
|
Reference in New Issue
Block a user