Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BeatmapDir = "Songs"
Functions ¶
func RunNotifier ¶
RunNotifier needs to be run concurrently for sending replays to replayChan when new replays are created in Data/r folder
Types ¶
type OsuHM ¶
OsuHM stores osu root path, the api key and hashmap of beatmaps
func Load ¶
Load loads a previously cached OsuHM dirPath is the folder where the cache file is located
func NewOsuHM ¶
New creates a new OsuHM it opens osu!.db file, if it was opened before use Load instead
func (*OsuHM) GetBeatmap ¶
GetBeatmap returns a osu! Beatmap from its hash
func (*OsuHM) GetBeatmapPath ¶
GetBeatmapPath returns the full path of the specified beatmap
func (*OsuHM) InitBeatmapDir ¶ added in v1.0.2
func (osuhm *OsuHM) InitBeatmapDir()
func (*OsuHM) StartNotifier ¶
StartNotifier runs a notifier that watch for new replays and sends them into the replayChan channel
Click to show internal directories.
Click to hide internal directories.