Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProjectInit ¶
func ProjectInit() error
Types ¶
type Node ¶
type Node struct { Name string `json:"name"` IsTree bool `json:"isTree"` Path string `json:"path"` }
Node ==== Represents a single node. I can be subtopic or topic. Each node will have `Name`, `Children`
type Page ¶
type Page struct { ID bson.ObjectId `json:"id" bson:"_id,omitempty"` Name string `json:"name" bson:"name"` Title string `json:"title" bson:"title"` Content string `json:"content" bson:"content"` Topic bson.ObjectId `json:"topic" bson:"topic"` Project bson.ObjectId `json:"project" bson:"project"` Timestamp int64 `json:"timestamp" bson:"timestamp"` }
Page: Represents a single page
type Project ¶
type Project struct { ID bson.ObjectId `json:"id" bson:"_id,omitempty"` Name string `json:"name" bson:"name"` Description string `json:"description" bson:"description"` Title string `json:"title" bson:"title"` Timestamp int64 `json:"timestamp" bson:"timestamp"` }
Project: Represents a single project
type Topic ¶
type Topic struct { ID bson.ObjectId `json:"id" bson:"_id,omitempty"` Name string `json:"name" bson:"name"` Title string `json:"title" bson:"title"` Project bson.ObjectId `json:"project" bson:"project"` Timestamp int64 `json:"timestamp" bson:"timestamp"` }
Topic: Represents a single topic
Click to show internal directories.
Click to hide internal directories.