handlers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Health added in v0.3.0

func Health(db *db.Client) http.HandlerFunc

Health creates a health check handler

func ListUploads

func ListUploads(s3cfg s3.Config, db *db.Client) http.HandlerFunc

ListUploads returns a handler that allows listing of uploaded images

func Status

func Status(w http.ResponseWriter, r *http.Request)

Status is the base route handler responding with a simple status message

func Upload

func Upload(s3cfg s3.Config, db *db.Client) http.HandlerFunc

Upload returns a handler that handles file uploads to the given region and bucket

Types

type MsgResponse

type MsgResponse struct {
	Message string `json:"message"`
}

MsgResponse is a simple message response

Jump to

Keyboard shortcuts

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