Documentation ¶
Index ¶
- Variables
- func Boot()
- func FindRateList(d deps, date string, offset, limit int) ([]bson.ObjectId, error)
- func SomeoneCommentedYourPost(name string, post Post) hermes.Email
- func SyncRates(d deps, kind string, list []bson.ObjectId) error
- func TrackReachedList(d deps, list []bson.ObjectId, user bson.ObjectId) (err error)
- func TrackView(d deps, id, user bson.ObjectId) (err error)
- type Post
- type Posts
Constants ¶
This section is empty.
Variables ¶
View Source
var PostNotFound = errors.New("post has not been found by given criteria")
PostNotFound err.
Functions ¶
func FindRateList ¶
func TrackReachedList ¶
Types ¶
type Post ¶
type Post struct { Id bson.ObjectId `bson:"_id,omitempty" json:"id,omitempty"` Title string `bson:"title" json:"title"` Slug string `bson:"slug" json:"slug"` Type string `bson:"type" json:"type"` Content string `bson:"content" json:"content"` Categories []string `bson:"categories" json:"categories"` Comments comments `bson:"comments"` Category bson.ObjectId `bson:"category" json:"category"` UserId bson.ObjectId `bson:"user_id,omitempty" json:"user_id,omitempty"` Users []bson.ObjectId `bson:"users,omitempty" json:"users,omitempty"` RelatedComponents []bson.ObjectId `bson:"related_components,omitempty" json:"related_components,omitempty"` Following bool `bson:"following,omitempty" json:"following,omitempty"` Pinned bool `bson:"pinned,omitempty" json:"pinned,omitempty"` Lock bool `bson:"lock" json:"lock"` IsQuestion bool `bson:"is_question" json:"is_question"` Solved bool `bson:"solved,omitempty" json:"solved,omitempty"` Liked int `bson:"liked,omitempty" json:"liked,omitempty"` Created time.Time `bson:"created_at" json:"created_at"` Updated time.Time `bson:"updated_at" json:"updated_at"` Deleted time.Time `bson:"deleted_at,omitempty" json:"deleted_at,omitempty"` }
func (Post) VotableType ¶
Click to show internal directories.
Click to hide internal directories.