middleware

package
v0.0.0-...-7ad5d0e Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthNInterceptor

func NewAuthNInterceptor(cfg config.AuthnConfig, client *stytchapi.API, log *logger.Logger, analyticsClient *analytics.Client) *authnInterceptor

NewAuthNInterceptor creates an authentication interceptor that handles both unary and streaming RPCs

func NewAuthzInterceptor

func NewAuthzInterceptor(cfg config.AuthzConfig, client *cerbos.GRPCClient, log *logger.Logger) *authzInterceptor

NewAuthzInterceptor creates an interceptor that handles both unary and streaming RPCs

func NewErrorInterceptor

func NewErrorInterceptor(cfg *config.Config, log *logger.Logger) connect.UnaryInterceptorFunc

NewErrorInterceptor creates an interceptor that handles and logs errors

func NewLoggingInterceptor

func NewLoggingInterceptor(log *logger.Logger) connect.UnaryInterceptorFunc

NewLoggingInterceptor creates a new logging interceptor for connect-rpc

func NewMetricsInterceptor

func NewMetricsInterceptor(m *metrics.Metrics) *metricsInterceptor

NewMetricsInterceptor creates an interceptor that collects metrics for both unary and streaming RPCs

func NewTransactionInterceptor

func NewTransactionInterceptor(pool *database.Pool, log *logger.Logger) *transactionInterceptor

func Recovery

func Recovery(log *logger.Logger) func(http.Handler) http.Handler

Recovery is panic recovery middleware

Types

This section is empty.

Jump to

Keyboard shortcuts

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