Documentation
¶
Index ¶
- Constants
- func BasicAuthUsersValidator(users map[string]string) middleware.BasicAuthValidator
- func BasicAuthValidator(basicAuthUser string, basicAuthPassword string) middleware.BasicAuthValidator
- func CustomErrorHandler[E ApiError](errorHandler ErrorHandler[E]) func(error, echo.Context)
- func IdempotencyMiddlewareEcho(store idempotency.IdempotencyStore) echo.MiddlewareFunc
- func LogHttpError(logger *logrus.Entry, path string, code int, err error)
- type ApiError
- type ErrorHandler
- type RestUsers
Constants ¶
View Source
const IdempotencyKey = "Idempotency-Key"
Variables ¶
This section is empty.
Functions ¶
func BasicAuthUsersValidator ¶ added in v2.4.38
func BasicAuthUsersValidator(users map[string]string) middleware.BasicAuthValidator
func BasicAuthValidator ¶
func BasicAuthValidator(basicAuthUser string, basicAuthPassword string) middleware.BasicAuthValidator
func CustomErrorHandler ¶
func CustomErrorHandler[E ApiError](errorHandler ErrorHandler[E]) func(error, echo.Context)
func IdempotencyMiddlewareEcho ¶
func IdempotencyMiddlewareEcho(store idempotency.IdempotencyStore) echo.MiddlewareFunc
IdempotencyMiddlewareEcho provides idempotency for Echo handlers.
Types ¶
type ApiError ¶
type ApiError interface {
error
ToErrorResponse() api.ErrorResponse
}
Click to show internal directories.
Click to hide internal directories.