升级异常

This commit is contained in:
2025-05-23 22:12:11 +08:00
parent 8be5a85ed0
commit e85811512f
5 changed files with 10 additions and 43 deletions

View File

@ -7,7 +7,10 @@
// Date : 2021-04-01 5:53 下午
package dispatch
import "git.zhangdeman.cn/gateway/balance/define"
import (
"git.zhangdeman.cn/gateway/balance/define"
"git.zhangdeman.cn/zhangdeman/exception"
)
// IDispatch 负载均衡的接口定义
//
@ -16,5 +19,5 @@ import "git.zhangdeman.cn/gateway/balance/define"
// Date : 2:44 下午 2021/4/1
type IDispatch interface {
// Get 获取一个节点
Get(nodeList []*define.SeverNode) (string, *define.Error)
Get(nodeList []*define.SeverNode) (string, exception.IException)
}