Documentation ¶
Index ¶
- Constants
- func Close()
- func Init() error
- func LoadBeatmaps(skipDatabaseCheck bool, importListener ImportListener) []*beatmap.BeatMap
- func UpdateLocalOffset(beatmap *beatmap.BeatMap)
- func UpdatePlayStats(beatmap *beatmap.BeatMap)
- func UpdateStarRating(maps []*beatmap.BeatMap, progressListener func(processed, target int))
- type ImportListener
- type ImportStage
- type M20181111
- type M20201027
- type M20201112
- type M20201117
- type M20201118
- type M20210104
- type M20210326
- type M20210423
- type M20220605
- type M20220622
- type Migration
Constants ¶
View Source
const ( Discovery = ImportStage(iota) Comparison Cleanup Import Finished )
Variables ¶
This section is empty.
Functions ¶
func LoadBeatmaps ¶
func LoadBeatmaps(skipDatabaseCheck bool, importListener ImportListener) []*beatmap.BeatMap
func UpdateLocalOffset ¶
func UpdatePlayStats ¶
func UpdateStarRating ¶
Types ¶
type ImportListener ¶
type ImportListener func(stage ImportStage, progress, target int)
type ImportStage ¶
type ImportStage int
type M20181111 ¶
type M20181111 struct{}
func (*M20181111) FieldsToMigrate ¶
func (*M20181111) GetMigrationStmts ¶
func (*M20181111) RequiredSections ¶
type M20201027 ¶
type M20201027 struct{}
func (*M20201027) FieldsToMigrate ¶
func (*M20201027) GetMigrationStmts ¶
func (*M20201027) RequiredSections ¶
type M20201112 ¶
type M20201112 struct{}
func (*M20201112) FieldsToMigrate ¶
func (*M20201112) GetMigrationStmts ¶
func (*M20201112) RequiredSections ¶
type M20201117 ¶
type M20201117 struct{}
func (*M20201117) FieldsToMigrate ¶
func (*M20201117) GetMigrationStmts ¶
func (*M20201117) RequiredSections ¶
type M20201118 ¶
type M20201118 struct{}
func (*M20201118) FieldsToMigrate ¶
func (*M20201118) GetMigrationStmts ¶
func (*M20201118) RequiredSections ¶
type M20210104 ¶
type M20210104 struct{}
func (*M20210104) FieldsToMigrate ¶
func (*M20210104) GetMigrationStmts ¶
func (*M20210104) RequiredSections ¶
type M20210326 ¶
type M20210326 struct{}
func (*M20210326) FieldsToMigrate ¶
func (*M20210326) GetMigrationStmts ¶
func (*M20210326) RequiredSections ¶
type M20210423 ¶
type M20210423 struct{}
func (*M20210423) FieldsToMigrate ¶
func (*M20210423) GetMigrationStmts ¶
func (*M20210423) RequiredSections ¶
type M20220605 ¶
type M20220605 struct{}
func (*M20220605) FieldsToMigrate ¶
func (*M20220605) GetMigrationStmts ¶
func (*M20220605) RequiredSections ¶
type M20220622 ¶
type M20220622 struct{}
func (*M20220622) FieldsToMigrate ¶
func (*M20220622) GetMigrationStmts ¶
func (*M20220622) RequiredSections ¶
type Migration ¶
type Migration interface { // Returns statements to update schema GetMigrationStmts() string // Returns required sections from .osu file RequiredSections() []string // Returns database fields to update FieldsToMigrate() []string // Returns beatmap values to update GetValues(beatMap *beatmap.BeatMap) []interface{} // Returns database version on which changes were made Date() int }
Click to show internal directories.
Click to hide internal directories.