Documentation ¶
Index ¶
- Variables
- func Close()
- func InitConfig() error
- func ProcessCommentQueue(q *CommentQueue) (err error)
- func ProcessCommentQueueStr(q *CommentQueueStr) (err error)
- func QueueCommentDBCS(bboardID bbs.BBoardID, articleID bbs.ArticleID, ownerID bbs.UUserID, ...) (err error)
- func QueueCommentDBCSStr(bboardID bbs.BBoardID, articleID bbs.ArticleID, ownerID bbs.UUserID, ...) (err error)
- func SetIsTest()
- func Start() error
- func UnsetIsTest()
- type CommentQueue
- type CommentQueueStr
Constants ¶
This section is empty.
Variables ¶
View Source
var ( QUEUE_SIZE = 4096 WORKER_NUM = 2 )
View Source
var IsTest = false
Functions ¶
func InitConfig ¶
func InitConfig() error
func ProcessCommentQueue ¶
func ProcessCommentQueue(q *CommentQueue) (err error)
ProcessCommentQueue
We use LastTime as the reference time to obtain stable timestamp. (lastTime is from firstComments, assuming not change a lot.) (mtime changes frequently and may result in unstable timestamp.)
func ProcessCommentQueueStr ¶
func ProcessCommentQueueStr(q *CommentQueueStr) (err error)
ProcessCommentQueue
We use LastTime as the reference time to obtain stable timestamp. (lastTime is from firstComments, assuming not change a lot.) (mtime changes frequently and may result in unstable timestamp.)
func QueueCommentDBCS ¶
func QueueCommentDBCSStr ¶
func UnsetIsTest ¶
func UnsetIsTest()
Types ¶
type CommentQueue ¶
Click to show internal directories.
Click to hide internal directories.