增加负载均衡策略修改的方法

This commit is contained in:
2025-05-23 22:16:30 +08:00
parent e85811512f
commit 640e022a40
2 changed files with 19 additions and 7 deletions

23
abstract/abstract.go Normal file
View File

@ -0,0 +1,23 @@
// Package abstract ...
//
// Description : dispatch...
//
// Author : go_developer@163.com<张德满>
//
// Date : 2021-04-01 5:53 下午
package abstract
import (
"git.zhangdeman.cn/gateway/balance/define"
"git.zhangdeman.cn/zhangdeman/exception"
)
// IBalance 负载均衡的接口定义
//
// Author : go_developer@163.com<张德满>
//
// Date : 2:44 下午 2021/4/1
type IBalance interface {
// Get 获取一个节点
Get(nodeList []*define.SeverNode) (string, exception.IException)
}