Documentation
¶
Index ¶
- Constants
- Variables
- func ConnectMaria()
- func DirSize(path string) (int64, error)
- func DownloadBeatmap(id string, whitName bool) (b bool, err error)
- func FileListUpdate()
- func InsertAPILog(s ...interface{}) (err error)
- func LoadBancho(ch chan struct{})
- func ManualUpdateBeatmapSet(id int) (err error)
- func QueryOnly(sql string, parm ...interface{}) error
- func RunGetBeatmapDataASBancho()
- func StartIndex()
- func ToDateTime(t interface{}) string
- func Upsert(query string, data []interface{})
- type FileIndex
Constants ¶
View Source
const GetDownloadBeatmapData = `SELECT beatmapset_id,artist,title,last_updated, video FROM BeatmapMirror.beatmapset WHERE beatmapset_id = ?`
View Source
const QueryAPILog = `` /* 189-byte string literal not displayed */
View Source
const QueryBeatmap = `select * from BeatmapMirror.beatmap where beatmapset_id in( %s ) order by mode_int, difficulty_rating asc;`
View Source
const QueryBeatmapsetOnly = `` /* 207-byte string literal not displayed */
View Source
const QuerySearchBeatmapSet = `` /* 264-byte string literal not displayed */
View Source
const QuerySearchBeatmapSetV2 = `` /* 234-byte string literal not displayed */
View Source
const QuerySearchBeatmapSetWhitQueryText = `` /* 376-byte string literal not displayed */
View Source
const QuerySearchBeatmapSetWhitQueryTextV2 = `` /* 341-byte string literal not displayed */
View Source
const UpsertBeatmap = `
INSERT INTO BeatmapMirror.beatmap
(
beatmap_id,beatmapset_id,mode,mode_int,status, ranked,total_length,max_combo,difficulty_rating,version,
accuracy,ar,cs,drain,bpm,` + "`convert`" + `,count_circles,count_sliders,count_spinners,deleted_at,
hit_length,is_scoreable,last_updated,passcount,playcount, checksum,user_id
)VALUES(
?,?,?,?,?, ?,?,?,?,?,
?,?,?,?,?, ?,?,?,?,?,
?,?,?,?,?, ?,?
)ON DUPLICATE KEY UPDATE
beatmapset_id = ?, mode = ?, mode_int = ?, status = ?,
ranked = ?, total_length = ?, max_combo = ?, difficulty_rating = ?, version = ?,
accuracy = ?, ar = ?, cs = ?, drain = ?, bpm = ?,
` + "`convert`" + ` = ?, count_circles = ?, count_sliders = ?, count_spinners = ?, deleted_at = ?,
hit_length = ?, is_scoreable = ?, last_updated = ?, passcount = ?, playcount = ?,
checksum = ?, user_id = ?
;
`
View Source
const UpsertBeatmapSet = `` /* 1321-byte string literal not displayed */
View Source
const UpsertBeatmapSet2 = `` /* 1090-byte string literal not displayed */
Variables ¶
View Source
var FileList = make(FileIndex)
View Source
var Maria *sql.DB
Functions ¶
func ConnectMaria ¶
func ConnectMaria()
func FileListUpdate ¶
func FileListUpdate()
func InsertAPILog ¶
func InsertAPILog(s ...interface{}) (err error)
func LoadBancho ¶
func LoadBancho(ch chan struct{})
func ManualUpdateBeatmapSet ¶
func RunGetBeatmapDataASBancho ¶
func RunGetBeatmapDataASBancho()
func StartIndex ¶
func StartIndex()
func ToDateTime ¶
func ToDateTime(t interface{}) string
Types ¶
Click to show internal directories.
Click to hide internal directories.