Documentation
¶
Overview ¶
Package imager handles image, video, etc. upload requests and processing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeallocateImage ¶
DeallocateImage decrements the image's refference counter. If the counter would become zero, the image entry is immediately deleted allong with its file assets.
func FindImageThumb ¶
FindImageThumb searches for an existing image with the specified hash and returns it, if it exists. Otherwise, returns an empty struct. To ensure the image is not deallocated by another theread/process, the refference counter of the image will be incremented. If a successfull allocattion is not performed, call UnreferenceImage() on this image, to avoid possible dangling images.
func NewImageUpload ¶
func NewImageUpload(res http.ResponseWriter, req *http.Request)
NewImageUpload handles the clients' image (or other file) upload request
Types ¶
This section is empty.