Documentation
¶
Index ¶
- func WithAuthRedirect(next http.Handler, auth *auth.Auth) http.Handler
- func WithCORS(pattern string, h http.Handler) (string, http.Handler)
- type AuthInterceptor
- type RatelimitInterceptor
- func (*RatelimitInterceptor) WrapStreamingClient(next connect.StreamingClientFunc) connect.StreamingClientFunc
- func (i *RatelimitInterceptor) WrapStreamingHandler(next connect.StreamingHandlerFunc) connect.StreamingHandlerFunc
- func (i *RatelimitInterceptor) WrapUnary(next connect.UnaryFunc) connect.UnaryFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
func NewAuthInterceptor ¶
func NewAuthInterceptor(auth *auth.Auth) *AuthInterceptor
func (*AuthInterceptor) WrapStreamingClient ¶
func (*AuthInterceptor) WrapStreamingClient(next connect.StreamingClientFunc) connect.StreamingClientFunc
func (*AuthInterceptor) WrapStreamingHandler ¶
func (i *AuthInterceptor) WrapStreamingHandler(next connect.StreamingHandlerFunc) connect.StreamingHandlerFunc
type RatelimitInterceptor ¶
type RatelimitInterceptor struct {
// contains filtered or unexported fields
}
func NewRateLimitInterceptor ¶
func NewRateLimitInterceptor() *RatelimitInterceptor
func (*RatelimitInterceptor) WrapStreamingClient ¶
func (*RatelimitInterceptor) WrapStreamingClient(next connect.StreamingClientFunc) connect.StreamingClientFunc
func (*RatelimitInterceptor) WrapStreamingHandler ¶
func (i *RatelimitInterceptor) WrapStreamingHandler(next connect.StreamingHandlerFunc) connect.StreamingHandlerFunc
Click to show internal directories.
Click to hide internal directories.