cron

package
v0.36.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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

func RetryCalculateUserVisit(ctx context.Context) error

RetryCalculateUserVisit make loop job to call CalculateUserVisit per 10 mins

func RetryLoadArticleDetails

func RetryLoadArticleDetails(ctx context.Context) error

func RetryLoadFullClassBoards

func RetryLoadFullClassBoards(ctx context.Context) error

func RetryLoadGeneralArticles

func RetryLoadGeneralArticles(ctx context.Context) error

func RetryLoadGeneralBoards

func RetryLoadGeneralBoards(ctx context.Context) error

func RetryLoadManArticleDetails

func RetryLoadManArticleDetails(ctx context.Context) error

func RetryLoadManArticles

func RetryLoadManArticles(ctx context.Context) error

func SetIsTest

func SetIsTest()

func UnsetIsTest

func UnsetIsTest()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL