Documentation
¶
Index ¶
- func NewAuthNInterceptor(cfg config.AuthnConfig, client *stytchapi.API, log *logger.Logger, ...) *authnInterceptor
- func NewAuthzInterceptor(cfg config.AuthzConfig, client *cerbos.GRPCClient, log *logger.Logger) *authzInterceptor
- func NewErrorInterceptor(cfg *config.Config, log *logger.Logger) connect.UnaryInterceptorFunc
- func NewLoggingInterceptor(log *logger.Logger) connect.UnaryInterceptorFunc
- func NewMetricsInterceptor(m *metrics.Metrics) *metricsInterceptor
- func NewTransactionInterceptor(pool *database.Pool, log *logger.Logger) *transactionInterceptor
- func Recovery(log *logger.Logger) func(http.Handler) http.Handler
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 ¶
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 ¶
NewMetricsInterceptor creates an interceptor that collects metrics for both unary and streaming RPCs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.