Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Topic ¶
type Topic struct { ID bson.ObjectId `json:"_id,omitempty" bson:"_id,omitempty"` Name string `bson:"name" json:"name"` }
Topic is a type for topic collection in mongo
func (*Topic) GetOneByID ¶
GetOneByID function for get topic by id
func (*Topic) GetOneByName ¶
GetOneByName function for get topic by name
Click to show internal directories.
Click to hide internal directories.