Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrStorageDisabled = errors.New("storage is disabled") ErrMediaType = errors.New("media type is not allowed") )
Functions ¶
Types ¶
type MediaTypes ¶
type MediaTypes struct {
// contains filtered or unexported fields
}
func NewMediaTypes ¶
func NewMediaTypes(mediaTypes map[string][]string) (MediaTypes, error)
func (*MediaTypes) IsAllowed ¶
func (m *MediaTypes) IsAllowed(mediaType string) bool
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewDisabledStorage ¶
func NewDisabledStorage() *Storage
func NewStorage ¶
Click to show internal directories.
Click to hide internal directories.