Documentation
¶
Index ¶
- func DownloadFile(url string) (*multipart.FileHeader, error)
- func ParseHTML(content string, upload uploader) (string, error)
- func ParseLink(link string) (string, error)
- func ParseUUID(u string) (uuid.UUID, error)
- func SendNewPassword(user domain.UserPart, password string, site domain.Site) error
- type Importer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func DownloadFile(url string) (*multipart.FileHeader, error)
DownloadFile
Retrieves a file from a specific url and copies it to a multipart.FileHeader ready to be uploaded by the media repository.
Returns errors.NOTFOUND if the status code is anything but 200. Returns errors.INTERNAL if the file could not be created, copied, closed or read.
func ParseLink ¶
ParseLink converts a link to of type *url Returns errors.INVALID if the post link was unable to be parsed.
Types ¶
Click to show internal directories.
Click to hide internal directories.