Documentation ¶
Index ¶
- func NewBinder() echo.Binder
- func NewValidator() echo.Validator
- type APIService
- func (svc *APIService) AccessLogMiddleware() echo.MiddlewareFunc
- func (svc *APIService) AuthMiddlewareMicro(rep cl.AuthRepository) echo.MiddlewareFunc
- func (svc *APIService) CSRFMiddleware() echo.MiddlewareFunc
- func (svc *APIService) LoggingMiddleware() echo.MiddlewareFunc
- func (svc *APIService) OAuthTelegramMiddleware() echo.MiddlewareFunc
- func (svc *APIService) Serve()
- func (svc *APIService) Shutdown(ctx context.Context) error
- func (svc *APIService) XRequestIDMiddleware() echo.MiddlewareFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewValidator ¶
func NewValidator() echo.Validator
Types ¶
type APIService ¶
type APIService struct {
// contains filtered or unexported fields
}
func NewAPIService ¶
func NewAPIService(log *logrus.Entry, dbConn *mongo.Database, debug bool, grpcConn *grpc.ClientConn) (*APIService, error)
func (*APIService) AccessLogMiddleware ¶
func (svc *APIService) AccessLogMiddleware() echo.MiddlewareFunc
func (*APIService) AuthMiddlewareMicro ¶
func (svc *APIService) AuthMiddlewareMicro(rep cl.AuthRepository) echo.MiddlewareFunc
func (*APIService) CSRFMiddleware ¶
func (svc *APIService) CSRFMiddleware() echo.MiddlewareFunc
func (*APIService) LoggingMiddleware ¶
func (svc *APIService) LoggingMiddleware() echo.MiddlewareFunc
func (*APIService) OAuthTelegramMiddleware ¶
func (svc *APIService) OAuthTelegramMiddleware() echo.MiddlewareFunc
func (*APIService) Serve ¶
func (svc *APIService) Serve()
func (*APIService) XRequestIDMiddleware ¶
func (svc *APIService) XRequestIDMiddleware() echo.MiddlewareFunc
Click to show internal directories.
Click to hide internal directories.