Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingMiddleware ¶
func LoggingMiddleware(logger *zap.Logger) endpoint.Middleware
LoggingMiddleware 登录中间件 @param logger 日志
func MakeLoginEndPoint ¶
MakeLoginEndPoint 创建登录端点 @param s 服务对象
func NewGolangRateAllowMiddleware ¶
func NewGolangRateAllowMiddleware(limit *rate.Limiter) endpoint.Middleware
NewGolangRateAllowMiddleware 限流中间件 @param limit 限流对象
Types ¶
type EndPointServer ¶
EndPointServer 端点服务
func NewEndPointServer ¶
NewEndPointServer 新建端点服务 @param svc 服务对象 @param log 日志对象 @param limit 限流对象
Click to show internal directories.
Click to hide internal directories.