Documentation
¶
Index ¶
- type Download
- type DownloadInfo
- type DownloadStatus
- type Manager
- func (manager *Manager) AddUnlock(questTitle, url, rpgName, profileName string, songDescriptions []string)
- func (manager *Manager) ClearCache() error
- func (manager *Manager) GetCacheSize() (int64, error)
- func (manager *Manager) HasPending() bool
- func (manager *Manager) SetUpdateCallback(callback func(*Unlock))
- type Unlock
- type UnpackStatus
- type UserData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Download ¶
type Download struct { Url string Filename string Progress chan DownloadInfo // contains filtered or unexported fields }
type DownloadInfo ¶
type DownloadStatus ¶
type DownloadStatus int
const ( NotDownloaded DownloadStatus = iota Downloading Downloaded )
type Manager ¶
type Manager struct { DownloadDir string Unlocks []*Unlock // contains filtered or unexported fields }
func NewManager ¶
func (*Manager) ClearCache ¶ added in v1.2.0
func (*Manager) GetCacheSize ¶ added in v1.2.0
func (*Manager) HasPending ¶
func (*Manager) SetUpdateCallback ¶
type Unlock ¶
type Unlock struct { DownloadUrl string RpgName string QuestTitle string SongDescriptions []string DownloadStatus DownloadStatus DownloadError error DownloadSize int64 DownloadProgress int64 Users []*UserData // contains filtered or unexported fields }
func (*Unlock) QueueDownload ¶
func (unlock *Unlock) QueueDownload()
func (*Unlock) QueueRefresh ¶
func (unlock *Unlock) QueueRefresh()
func (*Unlock) QueueUnpack ¶
type UnpackStatus ¶
type UnpackStatus int
const ( NotUnpacked UnpackStatus = iota Unpacking Unpacked )
type UserData ¶
type UserData struct { ProfileName string UnpackStatus UnpackStatus UnpackError error }
Click to show internal directories.
Click to hide internal directories.