Documentation ¶
Index ¶
- func NewAPIKeyInterceptor(logger *slog.Logger, aks *apikey.Service, authEnabled bool) connect.UnaryInterceptorFunc
- func NewLoggingInterceptor(logger *slog.Logger) *loggingInterceptor
- func RateLimiterInterceptor(rl *ratelimiter.RateLimiter) connect.UnaryInterceptorFunc
- func RetryInterceptor() connect.UnaryInterceptorFunc
- func WithHeaderConfig() connect.Interceptor
- func WithTimeout(timeout time.Duration) connect.Interceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIKeyInterceptor ¶
func NewAPIKeyInterceptor(logger *slog.Logger, aks *apikey.Service, authEnabled bool) connect.UnaryInterceptorFunc
NewAPIKeyInterceptor returns interceptor which is checking if api key exits
func NewLoggingInterceptor ¶
func RateLimiterInterceptor ¶
func RateLimiterInterceptor(rl *ratelimiter.RateLimiter) connect.UnaryInterceptorFunc
func RetryInterceptor ¶
func RetryInterceptor() connect.UnaryInterceptorFunc
func WithHeaderConfig ¶
func WithHeaderConfig() connect.Interceptor
func WithTimeout ¶
func WithTimeout(timeout time.Duration) connect.Interceptor
NewTimeoutInterceptor returns a new timeout interceptor.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.