Documentation ¶
Overview ¶
Package app contains the basic application logic and assembles together all the pieces of CheeseGull.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Downloader cheesegull.BeatmapDownloader Source cheesegull.BeatmapInfoSource Service cheesegull.BeatmapService FileResolver cheesegull.FileResolver Communication cheesegull.CommunicationService // handles non-critical errors ErrorHandler func(err error) // contains filtered or unexported fields }
App is the basic struct of the application which contains all the methods to make it run smoothly.
func (*App) CheckGood ¶
func (a *App) CheckGood(s *cheesegull.BeatmapSet) (bool, error)
CheckGood checks whether a beatmap is good or not to be downloaded.
func (*App) Start ¶
Start starts the application as a whole. Start should never return, unless there's a critical error.
func (*App) Update ¶
func (a *App) Update(s cheesegull.BeatmapSet) error
Update takes care of updating a beatmap to the latest version.
Click to show internal directories.
Click to hide internal directories.