Documentation ¶
Index ¶
- func InstrumentingMiddleware(duration metrics.Histogram) endpoint.Middleware
- func LoggingMiddleware(logger log.Logger) endpoint.Middleware
- func MakeGetUserEndpoint(s service.Service) endpoint.Endpoint
- func MakeLoginEndpoint(s service.Service) endpoint.Endpoint
- func MakeRegisterEndpoint(s service.Service) endpoint.Endpoint
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentingMiddleware ¶
func InstrumentingMiddleware(duration metrics.Histogram) endpoint.Middleware
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) endpoint.Middleware
func MakeLoginEndpoint ¶
MakeLoginEndpoint constructs a Login endpoint wrapping the service.
Types ¶
type Set ¶
type Set struct { GetUserEndpoint endpoint.Endpoint RegisterEndpoint endpoint.Endpoint LoginEndpoint endpoint.Endpoint }
func (Set) Login ¶
func (s Set) Login(ctx context.Context, login model.LoginRequest) (model.LoginResponse, error)
Login implements the service interface.
func (Set) Register ¶
func (s Set) Register(ctx context.Context, us model.RegisterRequest) (r model.RegisterUserResponse, err error)
Register implements the service interface,
Click to show internal directories.
Click to hide internal directories.