升级接口Server接口约束,支持修改服务器节点配置

This commit is contained in:
2025-05-23 22:38:59 +08:00
parent e1597328d2
commit 48c8c1652d
4 changed files with 61 additions and 14 deletions

View File

@ -13,9 +13,12 @@ package define
//
// Date : 2:46 下午 2021/4/1
type SeverNode struct {
ID string `json:"id"` // 机器编号
Host string `json:"host"` // ip
Port int `json:"port"` // 端口
Weight float64 `json:"weight"` // 权重
Status int `json:"status"` // 状态
ID string `json:"id"` // 机器编号
Host string `json:"host"` // ip
Port int `json:"port"` // 端口
Weight float64 `json:"weight"` // 权重
Status int `json:"status"` // 状态
Count uint64 `json:"count"` // 节点访问次数, 用于实现最小访问次数的策略
CostTime uint64 `json:"cost_time"` // 节点访问耗时, 用于实现最小访问耗时的策略
FailureCount uint64 `json:"failure_count"` // 节点访问失败次数, 用于实现最小访问失败次数的策略
}