Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertAlbumCoverURL(c echo.Context, val sql.NullString) string
- func ConvertArtistPictureURL(c echo.Context, val sql.NullString) string
- func ConvertImageURL(c echo.Context, val sql.NullString, def string) string
- func ConvertTrackCoverURL(c echo.Context, val sql.NullString) string
- func ConvertURL(c echo.Context, path string) string
- func CopyFile(src, dst string) (int64, error)
- func Decode(input interface{}, output interface{}) error
- func FormatTime(t int) string
- func GetSingleFile(form *multipart.Form, name string) (*multipart.FileHeader, error)
- func HasMusic(entries []fs.DirEntry) bool
- func IsFileLossyFormat(file string) bool
- func IsLossyFormatExt(ext string) 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 ParseAuthHeader(authHeader string) (string, error)
- func SymlinkReplace(src, dst string) error
- func WriteFormFile(file *multipart.FileHeader, dst string) error
Constants ¶
View Source
const ( DefaultArtistPictureName = "default/default_artist.png" DefaultAlbumCoverArtName = "default/default_album.png" DefaultTrackCoverArtName = "default/default_album.png" )
Variables ¶
View Source
var CreateId = createIdGenerator()
Functions ¶
func ConvertAlbumCoverURL ¶
func ConvertAlbumCoverURL(c echo.Context, val sql.NullString) string
func ConvertArtistPictureURL ¶
func ConvertArtistPictureURL(c echo.Context, val sql.NullString) string
func ConvertImageURL ¶
func ConvertImageURL(c echo.Context, val sql.NullString, def string) string
func ConvertTrackCoverURL ¶
func ConvertTrackCoverURL(c echo.Context, val sql.NullString) string
func ConvertURL ¶
func FormatTime ¶
func GetSingleFile ¶
func IsFileLossyFormat ¶
func IsLossyFormatExt ¶
func IsMultiDisc ¶
func IsMultiDiscName ¶
func IsMusicFile ¶
func IsValidImageExt ¶
func IsValidTrackExt ¶
func ParseAuthHeader ¶
func SymlinkReplace ¶
func WriteFormFile ¶
func WriteFormFile(file *multipart.FileHeader, dst string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.