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: 17 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 creates a comment and stores it in the database

func DeleteCommentHandler

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

DeleteCommentHandler : is the handler to remove a comment in the database

func GetCommentCountHandler

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

GetCommentCountHandler returns a list of counts beloning to comments.

func GetLastTenHandler

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

GetLastTenHandler returns a list of last 10 comments

func ListCommentsFromUser

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

ListCommentsFromUser : Return all comments from an user and add the photo(extra information) too.

func ListCommentsHandler

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

ListCommentsHandler return a list of comments

Types

This section is empty.

Jump to

Keyboard shortcuts

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