Documentation
¶
Index ¶
- Constants
- Variables
- func BuildStoredFilename(safeName string, now time.Time) (string, error)
- func ContentHash(body []byte) string
- func DefaultCollection(filename, contentType string) string
- func MustReference(collection, relPath string) string
- func NewReference(collection, relPath string) (string, error)
- func RewriteHTML(html string) string
- func SanitizeFilename(name string) string
- func ShouldForceDownload(name string) bool
- type Kind
- type Reference
- type UploadInfo
Constants ¶
View Source
const ReferenceScheme = "media:"
Variables ¶
View Source
var SupportedCollections = []string{"images", "videos", "audio", "documents", "uploads", "assets"}
Functions ¶
func ContentHash ¶
func DefaultCollection ¶
func MustReference ¶
func NewReference ¶
func RewriteHTML ¶
func SanitizeFilename ¶
func ShouldForceDownload ¶
Types ¶
type Reference ¶
func ResolveReference ¶
Click to show internal directories.
Click to hide internal directories.