Documentation ¶
Index ¶
- func MakeLoginEndPoint(s Service) endpoint.Endpoint
- func NewGRPCServer(endpoint EndPointServer, log *zap.Logger) pb.UserServer
- func NewGolangRateAllowMiddleware(limit *rate.Limiter) endpoint.Middleware
- func NewTracerEndpointMiddleware(tracer opentracing.Tracer) endpoint.Middleware
- func RequestGrpcLogin(_ context.Context, grpcReq interface{}) (interface{}, error)
- func ResponseGrpcLogin(_ context.Context, response interface{}) (interface{}, error)
- type EndPointServer
- type NewMiddlewareServer
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeLoginEndPoint ¶
func NewGRPCServer ¶
func NewGRPCServer(endpoint EndPointServer, log *zap.Logger) pb.UserServer
func NewGolangRateAllowMiddleware ¶
func NewGolangRateAllowMiddleware(limit *rate.Limiter) endpoint.Middleware
func NewTracerEndpointMiddleware ¶
func NewTracerEndpointMiddleware(tracer opentracing.Tracer) endpoint.Middleware
func RequestGrpcLogin ¶
func ResponseGrpcLogin ¶
Types ¶
type EndPointServer ¶
func NewEndPointServer ¶
func NewEndPointServer(svc Service, limit *rate.Limiter, tracer opentracing.Tracer) EndPointServer
type NewMiddlewareServer ¶
func NewLogMiddlewareServer ¶
func NewLogMiddlewareServer(log *zap.Logger) NewMiddlewareServer
func NewMetricsMiddlewareServer ¶
func NewMetricsMiddlewareServer(counter metrics.Counter, histogram metrics.Histogram) NewMiddlewareServer
func NewTracerMiddlewareServer ¶
func NewTracerMiddlewareServer(tracer opentracing.Tracer) NewMiddlewareServer
Click to show internal directories.
Click to hide internal directories.