Documentation ¶
Index ¶
- type DB
- func (db *DB) Connect() error
- func (db *DB) GetSchedulerComments(delaySecs int) (*sql.Rows, error)
- func (db *DB) GetSchedulerPosts(delaySecs int) (*sql.Rows, error)
- func (db *DB) Initialize() error
- func (db *DB) InsertComment(comment_id string, post_id, parent_id string, user_id string) error
- func (db *DB) InsertPost(id string) error
- func (db *DB) SetScheduled(entryType string, id string) error
- func (db *DB) UpdateLastCheck(entryType string, id string, last_check int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) GetSchedulerComments ¶
Get all post and comments which haven't been checked for new comments
in over delaySecs seconds. Exclude comments which have a parent as sub-comments cannot have more comments
func (*DB) GetSchedulerPosts ¶
Get all the pages which haven't been checked for new posts
in over delaySecs seconds (or never)
func (*DB) Initialize ¶
func (*DB) InsertComment ¶
func (*DB) InsertPost ¶
Click to show internal directories.
Click to hide internal directories.