Documentation ¶
Index ¶
- func CreateHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
- func GetHotHandler(connection *sql.DB) negroni.HandlerFunc
- func GetTopRatedHandler(connection *sql.DB) negroni.HandlerFunc
- func GetVoteCountHandler(connection *sql.DB) negroni.HandlerFunc
- func GetVotesFromAUser(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
- func HasVotedHandler(connection *sql.DB) negroni.HandlerFunc
- func HealthHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandler ¶
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 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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.