Documentation
¶
Index ¶
- func CORSMiddleware(next http.Handler) http.Handler
- func Chain(h http.Handler, middleware ...func(http.Handler) http.Handler) http.Handler
- func WithBucketAccessControl(policy BucketPolicy, logger *slog.Logger, enabled bool) func(http.Handler) http.Handler
- func WithLogging(logger *slog.Logger) func(http.Handler) http.Handler
- func WithValidation(config ValidationConfig) func(http.Handler) http.Handler
- type BucketPolicy
- type MetricsMiddleware
- type ValidationConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithBucketAccessControl ¶
func WithValidation ¶
func WithValidation(config ValidationConfig) func(http.Handler) http.Handler
Types ¶
type BucketPolicy ¶
type MetricsMiddleware ¶
type MetricsMiddleware struct {
// contains filtered or unexported fields
}
func NewMetricsMiddleware ¶
func NewMetricsMiddleware() *MetricsMiddleware
func (*MetricsMiddleware) ServeHTTP ¶
func (m *MetricsMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*MetricsMiddleware) WithMetrics ¶
func (m *MetricsMiddleware) WithMetrics(next http.Handler) http.Handler
type ValidationConfig ¶
Click to show internal directories.
Click to hide internal directories.