Documentation ¶
Index ¶
- Constants
- func MakeLoginEndPoint(s Service) endpoint.Endpoint
- func NewGRPCServer(endpoint EndPointServer, log *zap.Logger) pb.UserServer
- func NewGolangRateAllowMiddleware(limit *rate.Limiter) 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 ¶
View Source
const ContextReqUUid = "req_uuid"
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 RequestGrpcLogin ¶
func ResponseGrpcLogin ¶
Types ¶
type EndPointServer ¶
func NewEndPointServer ¶
func NewEndPointServer(svc Service, limit *rate.Limiter) EndPointServer
type NewMiddlewareServer ¶
func NewLogMiddlewareServer ¶
func NewLogMiddlewareServer(log *zap.Logger) NewMiddlewareServer
func NewMetricsMiddlewareServer ¶
func NewMetricsMiddlewareServer(counter metrics.Counter, histogram metrics.Histogram) NewMiddlewareServer
Click to show internal directories.
Click to hide internal directories.