Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidRequestType = errors.New("RequestType has only two type: Concat, Diff")
)
Functions ¶
func MakeHealthCheckEndpoint ¶
MakeHealthCheckEndpoint 创建健康检查Endpoint
Types ¶
type HealthResponse ¶
type HealthResponse struct {
Status bool `json:"status"`
}
HealthResponse 健康检查响应结构
type StringEndpoints ¶
type StringEndpoints struct { StringEndpoint endpoint.Endpoint HealthCheckEndpoint endpoint.Endpoint }
StringEndpoint define endpoint
type StringRequest ¶
type StringRequest struct { RequestType string `json:"request_type"` A string `json:"a"` B string `json:"b"` }
StringRequest define request struct
type StringResponse ¶
StringResponse define response struct
Click to show internal directories.
Click to hide internal directories.