server

package
v0.0.0-...-69fb0f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL