Documentation ¶
Overview ¶
Package interceptors contains interceptors which make checks before a request reaches the handler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PaymentAuthenticationInterceptor ¶
type PaymentAuthenticationInterceptor struct {
Service service.PaymentService
}
PaymentAuthenticationInterceptor contains the payment service used in the interceptor
func (PaymentAuthenticationInterceptor) PaymentAuthenticationIntercept ¶
func (paymentAuthenticationInterceptor PaymentAuthenticationInterceptor) PaymentAuthenticationIntercept(next http.Handler) http.Handler
PaymentAuthenticationIntercept checks that the user is authenticated for the payment
Click to show internal directories.
Click to hide internal directories.