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 Option ¶
type Option func(m *middleware)
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.