Documentation ¶
Index ¶
- Variables
- func AddCommands()
- func Execute()
- func GetAllComments(db *mgo.Database, forumId bson.ObjectId, page string) ([]*models.Comment, error)
- func GetAllCommentsResource(db *mgo.Database, parms martini.Params) string
- func GetCommentsSinceTime(db *mgo.Database, forumId bson.ObjectId, page string, since bson.ObjectId) ([]*models.Comment, error)
- func GetCommentsWithAncestor(db *mgo.Database, forumId bson.ObjectId, page string, ancestorId bson.ObjectId) ([]*models.Comment, error)
- func GetTopLevelComments(db *mgo.Database, forumId bson.ObjectId, page string) ([]*models.Comment, error)
- func InitializeFixtures(cmd *cobra.Command, args []string)
- func PostComment(db *mgo.Database, fullname string, email string, forumId bson.ObjectId, ...) (*models.Comment, error)
- func PostCommentHandler(request *http.Request, db *mgo.Database) string
- func PostCommentResource(forumIdStr string, pageStr string, bodyStr string, parentIdStr string) (forumId bson.ObjectId, page string, body string, parentId *bson.ObjectId, ...)
- func RootRun(cmd *cobra.Command, args []string)
Constants ¶
This section is empty.
Variables ¶
View Source
var CfgFile string
View Source
var DBHost string
View Source
var DBName string
View Source
var DBPort int
View Source
var Host string
View Source
var InitializeFixturesCmd = &cobra.Command{ Use: "initializeFixtures", Short: "Initialize Fixtures, throw away", Long: ``, Run: InitializeFixtures, }
View Source
var Port int
View Source
var Root = &cobra.Command{ Use: "kaiju", Short: "kaiju is an open source comment server", Long: `kaiju is an open source comment server`, Run: RootRun, }
View Source
var Verbose bool
Functions ¶
func AddCommands ¶
func AddCommands()
func GetAllComments ¶
func GetAllCommentsResource ¶
func GetCommentsSinceTime ¶
func GetCommentsWithAncestor ¶
func GetTopLevelComments ¶
func InitializeFixtures ¶
func PostComment ¶
func PostCommentResource ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.