Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscoveryRequest ¶
type DiscoveryRequest struct {
ServiceName string
}
DiscoveryRequest 服务发现请求结构体
type DiscoveryResponse ¶
type DiscoveryResponse struct { Instances []interface{} `json:"instances"` Error string `json:"error"` }
DiscoveryResponse 服务发现响应结构体
type HealthResponse ¶
type HealthResponse struct {
Status bool `json:"status"`
}
HealthResponse 健康检查响应结构
type SayHelloResponse ¶
type SayHelloResponse struct {
Message string `json:"message"`
}
SayHelloResponse 打招呼响应结构体
Click to show internal directories.
Click to hide internal directories.