src

package
v0.0.0-...-8dd7a4f Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

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 DirSize

func DirSize(path string) (int64, error)

func DownloadBeatmap

func DownloadBeatmap(id string, whitName bool) (b bool, err error)

func FileListUpdate

func FileListUpdate()

func InsertAPILog

func InsertAPILog(s ...interface{}) (err error)

func LoadBancho

func LoadBancho(ch chan struct{})

func ManualUpdateBeatmapSet

func ManualUpdateBeatmapSet(id int) (err error)

func QueryOnly

func QueryOnly(sql string, parm ...interface{}) error

func RunGetBeatmapDataASBancho

func RunGetBeatmapDataASBancho()

func StartIndex

func StartIndex()

func ToDateTime

func ToDateTime(t interface{}) string

func Upsert

func Upsert(query string, data []interface{})

Types

type FileIndex

type FileIndex map[int]time.Time

Jump to

Keyboard shortcuts

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