Documentation ¶
Index ¶
- Variables
- func CopyFile(src, dst string) (int64, error)
- func FormatTime(t int) string
- func GetSingleFile(form *multipart.Form, name string) (*multipart.FileHeader, error)
- func HasMusic(entries []fs.DirEntry) bool
- func IsMultiDisc(entries []fs.DirEntry) bool
- func IsMultiDiscName(name string) bool
- func IsMusicFile(p string) bool
- func IsValidImageExt(ext string) bool
- func IsValidTrackExt(ext string) bool
- func RunFFmpeg(verbose bool, args ...string) error
- func RunFFprobe(args ...string) ([]byte, error)
- func SymlinkReplace(src, dst string) error
- func WriteFormFile(file *multipart.FileHeader, dst string) error
- type FileResult
- type ProbeResult
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateId = createIdGenerator()
Functions ¶
func FormatTime ¶ added in v0.8.0
func GetSingleFile ¶
func IsMultiDisc ¶ added in v0.3.0
func IsMultiDiscName ¶ added in v0.3.0
func IsMusicFile ¶ added in v0.3.0
func IsValidImageExt ¶ added in v0.7.0
func IsValidTrackExt ¶
func RunFFprobe ¶
func SymlinkReplace ¶ added in v0.6.0
func WriteFormFile ¶
func WriteFormFile(file *multipart.FileHeader, dst string) error
Types ¶
type FileResult ¶
func CheckFile ¶
func CheckFile(filepath string) (FileResult, error)
TODO(patrik): Fix this function
Click to show internal directories.
Click to hide internal directories.