Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeHealthCheckEndpoint ¶
MakeHealthCheckEndpoint 创建健康检查Endpoint
Types ¶
type HealthResponse ¶
type HealthResponse struct {
Status bool `json:"status"`
}
HealthResponse 健康检查响应结构
type UseStringEndpoints ¶
type UseStringEndpoints struct { UseStringEndpoint endpoint.Endpoint HealthCheckEndpoint endpoint.Endpoint }
CalculateEndpoint define endpoint
type UseStringRequest ¶
type UseStringRequest struct { RequestType string `json:"request_type"` A string `json:"a"` B string `json:"b"` }
StringRequest define request struct
type UseStringResponse ¶
StringResponse define response struct
Click to show internal directories.
Click to hide internal directories.