Documentation ¶
Index ¶
- func AuthMiddleware(logger *zap.Logger) endpoint.Middleware
- func LoggingMiddleware(logger *zap.Logger) endpoint.Middleware
- func MakeAddEndPoint(s v4_service.Service) endpoint.Endpoint
- func MakeLoginEndPoint(s v4_service.Service) endpoint.Endpoint
- func NewGolangRateAllowMiddleware(limit *rate.Limiter) endpoint.Middleware
- func NewGolangRateWaitMiddleware(limit *rate.Limiter) endpoint.Middleware
- func NewUberRateMiddleware(limit ratelimit.Limiter) endpoint.Middleware
- type EndPointServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(logger *zap.Logger) endpoint.Middleware
func LoggingMiddleware ¶
func LoggingMiddleware(logger *zap.Logger) endpoint.Middleware
func MakeAddEndPoint ¶
func MakeAddEndPoint(s v4_service.Service) endpoint.Endpoint
func MakeLoginEndPoint ¶
func MakeLoginEndPoint(s v4_service.Service) endpoint.Endpoint
func NewGolangRateAllowMiddleware ¶
func NewGolangRateAllowMiddleware(limit *rate.Limiter) endpoint.Middleware
func NewGolangRateWaitMiddleware ¶
func NewGolangRateWaitMiddleware(limit *rate.Limiter) endpoint.Middleware
func NewUberRateMiddleware ¶
func NewUberRateMiddleware(limit ratelimit.Limiter) endpoint.Middleware
Types ¶
type EndPointServer ¶
func NewEndPointServer ¶
func NewEndPointServer(svc v4_service.Service, log *zap.Logger, limit *rate.Limiter, limiter ratelimit.Limiter) EndPointServer
func (EndPointServer) Add ¶
func (s EndPointServer) Add(ctx context.Context, in v4_service.Add) v4_service.AddAck
func (EndPointServer) Login ¶
func (s EndPointServer) Login(ctx context.Context, in v4_service.Login) (v4_service.LoginAck, error)
Click to show internal directories.
Click to hide internal directories.