Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAllowedTypes = []*regexp.Regexp{ regexp.MustCompile(`^text/`), regexp.MustCompile(`^application/json`), regexp.MustCompile(`^application/javascript`), regexp.MustCompile(`\+(xml|json)$`), regexp.MustCompile(`^image/svg`), }
Functions ¶
Types ¶
type EncoderFactory ¶
type Middleware ¶ added in v0.1.0
func New ¶ added in v0.1.0
func New(options ...Option) Middleware
type Option ¶
type Option func(*config)
func WihtoutEncoder ¶
func WithAllowedTypes ¶
func WithEncoder ¶
func WithEncoder(encoding string, priotity int, factory EncoderFactory) Option
func WithMinSize ¶
func WithSilent ¶
func WithSilent() Option
Click to show internal directories.
Click to hide internal directories.