Documentation ¶
Overview ¶
Package server 路由、负载、监听外部服务包
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct { ID string `json:"id"` Host string `json:"host"` Port int `json:"port"` Health string `json:"health"` }
Service 服务器信息
func (*Service) EqualService ¶
EqualService 比较服务器是否相同
type ServiceReq ¶
ServiceReq 服务器新增请求对象
type Services ¶
type Services struct {
Services []*Service `json:"services"`
}
Services 服务器对象集合
func GetServices ¶
GetServices 根据服务名称获取本地服务器列表,如果没有,则新建
Click to show internal directories.
Click to hide internal directories.