Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectType ¶
Types ¶
type MediaTypeInfo ¶
type MediaTypeInfo interface { // MediaType returns the type of media for this info. MediaType() mediapb.MediaType // DirectoryName returns a string which usually used to construct // path for storing the media files. DirectoryName() string // IsContentTypeAllowed returns true if the provided content type string // is allowed for the media type. IsContentTypeAllowed(contentType string) bool }
func GetMediaTypeInfo ¶
func GetMediaTypeInfo(mediaType mediapb.MediaType) MediaTypeInfo
func GetMediaTypeInfoByTypeName ¶
func GetMediaTypeInfoByTypeName(mediaTypeName string) MediaTypeInfo
Click to show internal directories.
Click to hide internal directories.