Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // UnsupportedExt is used for unsupported file extension UnsupportedExt = Ext{Supported: false, FileType: FileTypeUnsupported} )
Functions ¶
This section is empty.
Types ¶
type Ext ¶ added in v0.7.0
type Ext struct { Ext string `json:"ext"` FileType FileType `json:"fileType"` Supported bool `json:"supported"` PreviewType PreviewType `json:"previewType"` }
Ext is a struct which contains type of the original file and type for preview
type PreviewType ¶ added in v0.7.0
type PreviewType string
const ( PreviewTypeUnsupported PreviewType = "" // audio PreviewTypeAudioMP3 PreviewType = "audio/mpeg" PreviewTypeAudioOGG PreviewType = "audio/ogg" PreviewTypeAudioWAV PreviewType = "audio/wav" // image PreviewTypeImage PreviewType = "image" // video PreviewTypeVideoMP4 PreviewType = "video/mp4" PreviewTypeVideoWebM PreviewType = "video/webm" // text PreviewTypeText PreviewType = "text" )
Preview types
Click to show internal directories.
Click to hide internal directories.