Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeDiscoveryEndpoint ¶
创建服务发现的 Endpoint
Types ¶
type DiscoveryResponse ¶
type DiscoveryResponse struct { Instances []*discovery.InstanceInfo `json:"instances"` Error string `json:"error"` }
服务发现响应结构体
type HealthResponse ¶
type HealthResponse struct {
Status string `json:"status"`
}
HealthResponse 健康检查响应结构
Click to show internal directories.
Click to hide internal directories.