Documentation
¶
Index ¶
- func CreateHandler(connection *sql.DB) negroni.HandlerFunc
- func DeletePhotoHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
- func GetPhotoByID(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
- func HotHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
- func IPCGetPhotos(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
- func IncomingHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
- func IndexHandler(connection *sql.DB) negroni.HandlerFunc
- func ListByUserIDHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
- func TopRatedHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
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 ¶
DeletePhotoHandler : is the handler to remove a photo in the database
func GetPhotoByID ¶
func HotHandler ¶
HotHandler is the handler for serving the Hot photos timeline
func IPCGetPhotos ¶
func IncomingHandler ¶
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 ¶
ListByUserIDHandler list all photos owned by an user.
func TopRatedHandler ¶
TopRatedHandler is the handler for serving the Top Rated photos timeline
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.