Documentation ¶
Index ¶
- Constants
- Variables
- func CalculateUserVisit()
- func LoadArticleDetails() (err error)
- func LoadFullClassBoards() (err error)
- func LoadGeneralArticles() (err error)
- func LoadGeneralBoards() (err error)
- func LoadManArticleDetails() (err error)
- func LoadManArticles() (err error)
- func RetryCalculateUserVisit(ctx context.Context) error
- func RetryLoadArticleDetails(ctx context.Context) error
- func RetryLoadFullClassBoards(ctx context.Context) error
- func RetryLoadGeneralArticles(ctx context.Context) error
- func RetryLoadGeneralBoards(ctx context.Context) error
- func RetryLoadManArticleDetails(ctx context.Context) error
- func RetryLoadManArticles(ctx context.Context) error
- func SetIsTest()
- func UnsetIsTest()
Constants ¶
View Source
const ( N_BOARDS = 1000 N_ARTICLES = 1000 N_ARTICLE_DETAILS = 1000 INVALID_LOAD_GENERAL_ARTICLES_NEXT_IDX = -1 )
Variables ¶
View Source
var IsTest = false
Functions ¶
func CalculateUserVisit ¶
func CalculateUserVisit()
CalculateUserVisit get user visit count from db and set to redis
func LoadArticleDetails ¶
func LoadArticleDetails() (err error)
func LoadFullClassBoards ¶
func LoadFullClassBoards() (err error)
func LoadGeneralArticles ¶
func LoadGeneralArticles() (err error)
func LoadGeneralBoards ¶
func LoadGeneralBoards() (err error)
func LoadManArticleDetails ¶
func LoadManArticleDetails() (err error)
func LoadManArticles ¶
func LoadManArticles() (err error)
func RetryCalculateUserVisit ¶
RetryCalculateUserVisit make loop job to call CalculateUserVisit per 10 mins
func RetryLoadArticleDetails ¶
func RetryLoadGeneralBoards ¶
func RetryLoadManArticles ¶
func UnsetIsTest ¶
func UnsetIsTest()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.