controllers

package
v0.0.0-...-f90f44b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHandler

func CreateHandler(connection *sql.DB) negroni.HandlerFunc

CreateHandler create a photo object and store it in the database.

func DeletePhotoHandler

func DeletePhotoHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc

DeletePhotoHandler : is the handler to remove a photo in the database

func GetPhotoByID

func GetPhotoByID(connection *sql.DB, cnf config.Config) negroni.HandlerFunc

func HotHandler

func HotHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc

HotHandler is the handler for serving the Hot photos timeline

func IPCGetPhotos

func IPCGetPhotos(connection *sql.DB, cnf config.Config) negroni.HandlerFunc

func IncomingHandler

func IncomingHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc

IncomingHandler is the handler for serving the default photos timeline

func IndexHandler

func IndexHandler(connection *sql.DB) negroni.HandlerFunc

IndexHandler serves a photo indentiefied by filename

func ListByUserIDHandler

func ListByUserIDHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc

ListByUserIDHandler list all photos owned by an user.

func TopRatedHandler

func TopRatedHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc

TopRatedHandler is the handler for serving the Top Rated photos timeline

Types

This section is empty.

Jump to

Keyboard shortcuts

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