Documentation ¶
Index ¶
- func FilesHandler(store *imageservice.Service, logger *logrus.Logger) http.HandlerFunc
- func ImageHandler(dir string, logger *logrus.Logger) http.HandlerFunc
- func RemoveHandler(dir string, logger *logrus.Logger) http.HandlerFunc
- func UploadHandler(uploadDir string, logger *logrus.Logger) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilesHandler ¶
func FilesHandler(store *imageservice.Service, logger *logrus.Logger) http.HandlerFunc
FilesHandler returns a http.HandlerFunc that accepts requests for an image stores file list.
func ImageHandler ¶
func ImageHandler(dir string, logger *logrus.Logger) http.HandlerFunc
ImageHandler handles request for individual images.
func RemoveHandler ¶
func RemoveHandler(dir string, logger *logrus.Logger) http.HandlerFunc
RemoveHandler handlers requests to a delete a file from the server.
func UploadHandler ¶
func UploadHandler(uploadDir string, logger *logrus.Logger) http.HandlerFunc
UploadHandler handles requests to upload files to the server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.