Documentation ¶
Index ¶
- func CreateHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
- func DeleteCommentHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
- func GetCommentCountHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
- func GetLastTenHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
- func ListCommentsFromUser(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
- func ListCommentsHandler(connection *sql.DB, cnf config.Config) negroni.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandler ¶
CreateHandler creates a comment and stores it in the database
func DeleteCommentHandler ¶
DeleteCommentHandler : is the handler to remove a comment in the database
func GetCommentCountHandler ¶
GetCommentCountHandler returns a list of counts beloning to comments.
func GetLastTenHandler ¶
GetLastTenHandler returns a list of last 10 comments
func ListCommentsFromUser ¶
ListCommentsFromUser : Return all comments from an user and add the photo(extra information) too.
func ListCommentsHandler ¶
ListCommentsHandler return a list of comments
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.