cron

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 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 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

func RetryCalculateUserVisit(ctx context.Context) error

RetryCalculateUserVisit make loop job to call CalculateUserVisit per 10 mins

func RetryLoadArticleDetails added in v0.26.0

func RetryLoadArticleDetails(ctx context.Context) error

func RetryLoadFullClassBoards added in v0.21.0

func RetryLoadFullClassBoards(ctx context.Context) error

func RetryLoadGeneralArticles added in v0.26.0

func RetryLoadGeneralArticles(ctx context.Context) error

func RetryLoadGeneralBoards

func RetryLoadGeneralBoards(ctx context.Context) error

func RetryLoadManArticleDetails added in v0.28.0

func RetryLoadManArticleDetails(ctx context.Context) error

func RetryLoadManArticles added in v0.28.0

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