endpoint

package
v0.0.0-...-312ee99 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHealthCheckEndpoint

func MakeHealthCheckEndpoint(svc service.Service) endpoint.Endpoint

MakeHealthCheckEndpoint 创建健康检查Endpoint

func MakeSecInfoEndpoint

func MakeSecInfoEndpoint(svc service.Service) endpoint.Endpoint

make endpoint

func MakeSecInfoListEndpoint

func MakeSecInfoListEndpoint(svc service.Service) endpoint.Endpoint

func MakeSecKillEndpoint

func MakeSecKillEndpoint(svc service.Service) endpoint.Endpoint

make endpoint

func MakeTestEndpoint

func MakeTestEndpoint(svc service.Service) endpoint.Endpoint

Types

type HealthRequest

type HealthRequest struct{}

HealthRequest 健康检查请求结构

type HealthResponse

type HealthResponse struct {
	Status bool `json:"status"`
}

HealthResponse 健康检查响应结构

type Response

type Response struct {
	Result map[string]interface{} `json:"result"`
	Error  error                  `json:"error"`
	Code   int                    `json:"code"`
}

type SecInfoListResponse

type SecInfoListResponse struct {
	Result []map[string]interface{} `json:"result"`
	Num    int                      `json:"num"`
	Error  error                    `json:"error"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL