interceptors

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAuthRedirect

func WithAuthRedirect(next http.Handler, auth *auth.Auth) http.Handler

func WithCORS

func WithCORS(pattern string, h http.Handler) (string, http.Handler)

WithCORS adds CORS support to a Connect HTTP handler.

Types

type AuthInterceptor

type AuthInterceptor struct {
	// contains filtered or unexported fields
}

func NewAuthInterceptor

func NewAuthInterceptor(auth *auth.Auth) *AuthInterceptor

func (*AuthInterceptor) WrapStreamingClient

func (*AuthInterceptor) WrapStreamingHandler

func (*AuthInterceptor) WrapUnary

func (i *AuthInterceptor) WrapUnary(next connect.UnaryFunc) connect.UnaryFunc

type RatelimitInterceptor

type RatelimitInterceptor struct {
	// contains filtered or unexported fields
}

func NewRateLimitInterceptor

func NewRateLimitInterceptor() *RatelimitInterceptor

func (*RatelimitInterceptor) WrapStreamingClient

func (*RatelimitInterceptor) WrapStreamingHandler

func (*RatelimitInterceptor) WrapUnary

Jump to

Keyboard shortcuts

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