增加负载均衡策略修改的方法
This commit is contained in:
23
abstract/abstract.go
Normal file
23
abstract/abstract.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user