Documentation ¶
Index ¶
- Variables
- func AddDocument(docs interface{}) (err error)
- func BestdoriFanMadeInsertID(chartID int) (errorCode int, err error)
- func BestdoriFanMadeSyncAll() (errCode int, err error)
- func BestdoriFanMadeSyncPage(page int) (totalCount int, errCode int, err error)
- func BestdoriFanMadeSyncRand() (errCode int, err error)
- func CheckBestdoriSongVersion(ChartID int) (bool, error)
- func CronSync()
- func GetMeiliLastUpdate() (lastUpdate time.Time, err error)
- func InsertBestdori(item generalModels.BestdoriChartItem) (err error)
- func MysqlSyncToMeiliSearch() (err error)
- func QueryBestdoriFanMadeByLastUpdate(lastUpdate time.Time) (items []generalModels.BestdoriFanMadeView, err error)
- func UpdateBestdori(item generalModels.BestdoriChartUpdateItem) (err error)
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 BestdoriFanMadeSyncAll ¶
func BestdoriFanMadeSyncPage ¶
func BestdoriFanMadeSyncRand ¶
func GetMeiliLastUpdate ¶
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.
Click to show internal directories.
Click to hide internal directories.