Documentation ¶
Index ¶
- func MakeHealthCheckEndpoint(svc service.Service) endpoint.Endpoint
- func MakeSecInfoEndpoint(svc service.Service) endpoint.Endpoint
- func MakeSecInfoListEndpoint(svc service.Service) endpoint.Endpoint
- func MakeSecKillEndpoint(svc service.Service) endpoint.Endpoint
- func MakeTestEndpoint(svc service.Service) endpoint.Endpoint
- type HealthRequest
- type HealthResponse
- type Response
- type SecInfoListResponse
- type SecInfoRequest
- type SkAppEndpoints
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeHealthCheckEndpoint ¶
MakeHealthCheckEndpoint 创建健康检查Endpoint
func MakeSecInfoEndpoint ¶
make endpoint
func MakeSecKillEndpoint ¶
make endpoint
Types ¶
type HealthResponse ¶
type HealthResponse struct {
Status bool `json:"status"`
}
HealthResponse 健康检查响应结构
type SecInfoListResponse ¶
type SecInfoRequest ¶
type SecInfoRequest struct {
// contains filtered or unexported fields
}
type SkAppEndpoints ¶
type SkAppEndpoints struct { SecKillEndpoint endpoint.Endpoint HeathCheckEndpoint endpoint.Endpoint GetSecInfoEndpoint endpoint.Endpoint GetSecInfoListEndpoint endpoint.Endpoint TestEndpoint endpoint.Endpoint }
CalculateEndpoint define endpoint
func (SkAppEndpoints) HealthCheck ¶
func (ue SkAppEndpoints) HealthCheck() bool
Click to show internal directories.
Click to hide internal directories.