Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { // Init sets up this database's connections. Init() error // Close destroys this database's connections. Close() error // Refresh renews this database's connections. Refresh() error // PopulateBoard fetches a board by name. PopulateBoard(boardName string, b *tchan.BoardOverview, ok *bool) error // PopulateThread fetches the thread with the specified post in it. PopulateThread(boardName string, postID int64, thr *tchan.Thread, ok *bool) error // CreateThread adds a new thread to a board, setting the OP's post ID. CreateThread(boardName string, topic string, op *tchan.Post) error // AddPostToThread adds a reply to a thread, setting the post's ID in the process. AddReply(boardName string, postID int64, post *tchan.Post, ok *bool) error }
DB handles all database interactions.
Click to show internal directories.
Click to hide internal directories.