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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHandler

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

CreateHandler handler for creating a vote and storing it in the database.

func GetHotHandler

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

GetHotHandler is the handler for the hot photos timeline

func GetTopRatedHandler

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

GetTopRatedHandler is the handler for the top rated timeline.

func GetVoteCountHandler

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

GetVoteCountHandler is the handler for calculating the number of votes on a photo

func GetVotesFromAUser

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

func HasVotedHandler

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

HasVotedHandler is the handler for calculating whether the user has voted on a photo or not.

func HealthHandler

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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