app

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2017 License: MIT Imports: 6 Imported by: 0

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

func (a *App) Start(n int) error

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.

func (*App) Worker

func (a *App) Worker()

Worker is an instance that will download beatmaps as soon as they arrive down the channel.

Jump to

Keyboard shortcuts

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