interceptor

package
v0.0.0-...-e105d0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 NewLoggingInterceptor(logger *slog.Logger) *loggingInterceptor

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL