Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BearerAuth ¶
func BearerAuth(authUC usecase.AuthUseCase, next http.HandlerFunc) http.HandlerFunc
BearerAuth get Bearer Authorization header, parses and validate.
func Idempotency ¶
func Idempotency(idpRepo repository.IdempotencyRepository, next http.HandlerFunc) http.HandlerFunc
Idempotency returns the same result for requests with the same uri, user and X-Idempotency-Key header.
Fallbacks to original request processing in case of errors.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.