Documentation
¶
Index ¶
- func AddComment(db *mgo.Database, r render.Render, comment models.Comment, p martini.Params)
- func AddEvent(db *mgo.Database, r render.Render, event models.Event)
- func GetAllComments(db *mgo.Database, r render.Render, p martini.Params)
- func GetAllEvents(db *mgo.Database, r render.Render)
- func GetEvent(db *mgo.Database, r render.Render, p martini.Params)
- func GetLoggedInUser(tokens oauth2.Tokens, r render.Render) (int, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddComment ¶
Called on a POST to /events/:id/comments Assuming valid comment; Adds the comment under the given id
func GetAllComments ¶
Called on a GET to /events/:id/comments Returns list of all comments under :id
func GetAllEvents ¶
Called on a GET to /events Returns a list of all events
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.