Documentation
¶
Index ¶
- func FormatDuration(d time.Duration) string
- func FormatFileSize(size uint64) string
- func GenerateAudioThumbnail(thumbnailPath string) error
- func GenerateDocumentThumbnail(thumbnailPath string) error
- func GenerateFilename(sourceURL, contentType string) string
- func GenerateGenericThumbnail(thumbnailPath string) error
- func GenerateHash(input string) string
- func GenerateID(prefix string) string
- func GenerateImageThumbnail(sourcePath, thumbnailPath string) error
- func GenerateVideoThumbnail(sourcePath, thumbnailPath string) error
- func NormalizeURL(baseURL, relativeURL string) string
- func ResolveURL(baseURL, relativeURL string) string
- func RespondWithError(w http.ResponseWriter, code int, message string)
- func RespondWithJSON(w http.ResponseWriter, code int, payload any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAudioThumbnail ¶
func GenerateFilename ¶
GENERATE A FILENAME FOR DOWNLOADED ASSETS
func GenerateHash ¶
func GenerateImageThumbnail ¶
func GenerateVideoThumbnail ¶
func NormalizeURL ¶
func ResolveURL ¶
RESOLVE RELATIVE URL TO ABSOLUTE
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, code int, message string)
HTTP RESPONSES
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, code int, payload any)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.