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"` KeyID string `json:"KeyID"` SpanID string `json:"SpanID"` TraceID string `json:"TraceID"` BizCode string `json:"BizCode"` ParentID string `json:"ParentID"` Level string `json:"Level"` ClassName string `json:"ClassName"` MethodName string `json:"MethodName"` LocationDesc string `json:"LocationDesc"` }
StringRequest define request struct
type StringResponse ¶
StringResponse define response struct
Click to show internal directories.
Click to hide internal directories.