Documentation ¶
Index ¶
- Variables
- func MakeHealthCheckEndpoint(_ service.Service) endpoint.Endpoint
- func MakeLoginEndpoint(svc service.Service) endpoint.Endpoint
- func MakeVerifyEndpoint(svc service.Service) endpoint.Endpoint
- type AuthEndpoints
- type AuthRequest
- type AuthResponse
- type HealthRequest
- type HealthResponse
- type VerifyRequest
- type VerifyResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLoginReqType = errors.New("RequestType has only one type: Login") ErrInvalidVerifyReqType = errors.New("RequestType has only one type: Verify") ErrInvalidLoginRequest = errors.New("request has only one class: AuthRequest") ErrInvalidVerifyRequest = errors.New("request has only one class: VerifyRequest") )
Functions ¶
func MakeHealthCheckEndpoint ¶
MakeHealthCheckEndpoint 创建健康检查Endpoint.
Types ¶
type AuthEndpoints ¶
type AuthEndpoints struct { LoginEndpoint endpoint.Endpoint VerifyEndpoint endpoint.Endpoint HealthCheckEndpoint endpoint.Endpoint }
func MakeAuthEndpoints ¶
func MakeAuthEndpoints(svc service.Service) AuthEndpoints
func NewAuthEndpoints ¶
func NewAuthEndpoints(loginEP, verifyEP, healthCheckEP endpoint.Endpoint) AuthEndpoints
type AuthRequest ¶
type AuthResponse ¶
type HealthResponse ¶
type HealthResponse struct {
Status bool `json:"status"`
}
HealthResponse 健康检查响应结构.
type VerifyRequest ¶
type VerifyResponse ¶
Click to show internal directories.
Click to hide internal directories.