cronJob

package
v0.0.0-...-6875e1c Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MeiliSync bool
View Source
var MeiliSyncMutex sync.Mutex
View Source
var MysqlSyncFirst bool
View Source
var MysqlSyncFirstMutex sync.Mutex
View Source
var MysqlSyncRand bool
View Source
var MysqlSyncRandMutex sync.Mutex
View Source
var SqlDB *sqlx.DB

Functions

func AddDocument

func AddDocument(docs interface{}) (err error)

func BestdoriFanMadeInsertID

func BestdoriFanMadeInsertID(chartID int) (errorCode int, err error)

func BestdoriFanMadeSyncAll

func BestdoriFanMadeSyncAll() (errCode int, err error)

func BestdoriFanMadeSyncPage

func BestdoriFanMadeSyncPage(page int) (totalCount int, errCode int, err error)

func BestdoriFanMadeSyncRand

func BestdoriFanMadeSyncRand() (errCode int, err error)

func CheckBestdoriSongVersion

func CheckBestdoriSongVersion(ChartID int) (bool, error)

func CronSync

func CronSync()

func GetMeiliLastUpdate

func GetMeiliLastUpdate() (lastUpdate time.Time, err error)

func InsertBestdori

func InsertBestdori(item generalModels.BestdoriChartItem) (err error)

func MysqlSyncToMeiliSearch

func MysqlSyncToMeiliSearch() (err error)

MysqlSyncToMeiliSearch call at 30s each minute

func QueryBestdoriFanMadeByLastUpdate

func QueryBestdoriFanMadeByLastUpdate(lastUpdate time.Time) (items []generalModels.BestdoriFanMadeView, err error)

func UpdateBestdori

func UpdateBestdori(item generalModels.BestdoriChartUpdateItem) (err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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