Versions in this module Expand all Collapse all v0 v0.0.2 Sep 22, 2022 Changes in this version + const ContextReqUUid + 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 struct + LoginEndPoint endpoint.Endpoint + func NewEndPointServer(svc Service, limit *rate.Limiter) EndPointServer + func (s EndPointServer) Login(ctx context.Context, in *pb.Login) (*pb.LoginAck, error) + type NewMiddlewareServer func(Service) Service + func NewLogMiddlewareServer(log *zap.Logger) NewMiddlewareServer + func NewMetricsMiddlewareServer(counter metrics.Counter, histogram metrics.Histogram) NewMiddlewareServer + type Service interface + Login func(ctx context.Context, in *pb.Login) (ack *pb.LoginAck, err error) + func NewService(log *zap.Logger, counter metrics.Counter, histogram metrics.Histogram) Service