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 ¶ added in v0.24.0
func CalculateUserVisit()
CalculateUserVisit get user visit count from db and set to redis
func LoadArticleDetails ¶ added in v0.26.0
func LoadArticleDetails() (err error)
func LoadFullClassBoards ¶ added in v0.21.0
func LoadFullClassBoards() (err error)
func LoadGeneralArticles ¶
func LoadGeneralArticles() (err error)
func LoadGeneralBoards ¶
func LoadGeneralBoards() (err error)
func LoadManArticleDetails ¶ added in v0.28.1
func LoadManArticleDetails() (err error)
func LoadManArticles ¶ added in v0.28.0
func LoadManArticles() (err error)
func RetryCalculateUserVisit ¶ added in v0.24.0
RetryCalculateUserVisit make loop job to call CalculateUserVisit per 10 mins
func RetryLoadArticleDetails ¶ added in v0.26.0
func RetryLoadFullClassBoards ¶ added in v0.21.0
func RetryLoadGeneralArticles ¶ added in v0.26.0
func RetryLoadGeneralBoards ¶
func RetryLoadManArticleDetails ¶ added in v0.28.0
func RetryLoadManArticles ¶ added in v0.28.0
func UnsetIsTest ¶
func UnsetIsTest()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.