Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDbSession ¶
Types ¶
type Board ¶
type Board struct { Id int64 `db:"id"` Title string `db:"title"` Description string `db:"description"` }
func (*Board) GetLatestPost ¶
func (board *Board) GetLatestPost() BoardLatest
type BoardLatest ¶
type Post ¶
type Post struct { Id int64 `db:"id"` BoardId int64 `db:"board_id"` ParentId sql.NullInt64 `db:"parent_id"` Author *User `db:"-"` AuthorId int64 `db:"author_id"` Title string `db:"title"` Content string `db:"content"` CreatedOn time.Time `db:"created_on"` LatestReply time.Time `db:"latest_reply"` }
func (*Post) GetLatestPost ¶
This is used primarily for threads. It will find the latest post in a thread, allowing for things like "last post was 10 minutes ago.
func (*Post) GetPagesInThread ¶
Click to show internal directories.
Click to hide internal directories.