Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { Check(ctx context.Context, username, password string) (int64, error) // HealthCheck check service health status HealthCheck() bool }
Service Define a service interface
type ServiceMiddleware ¶
ServiceMiddleware define service middleware
type UserService ¶
type UserService struct { }
UserService implement Service interface
func (UserService) HealthCheck ¶
func (s UserService) HealthCheck() bool
HealthCheck implement Service method 用于检查服务的健康状态,这里仅仅返回true
Click to show internal directories.
Click to hide internal directories.