Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccessTokenFromLocal ¶
GetAccessTokenFromLocal get the access token & refresh token from local osu!lazer
Types ¶
type BeatmapDownloader ¶
type CatboyDownloader ¶
type CatboyDownloader struct {
// contains filtered or unexported fields
}
func NewCatboyDownloader ¶
func NewCatboyDownloader(ctx context.Context) *CatboyDownloader
func (*CatboyDownloader) DownloadBeatmapset ¶
func (d *CatboyDownloader) DownloadBeatmapset(beatmapsetId int) ([]byte, error)
func (*CatboyDownloader) Name ¶
func (d *CatboyDownloader) Name() string
type NerinyanDownloader ¶
func NewNerinyanDownloader ¶
func NewNerinyanDownloader(ctx context.Context) *NerinyanDownloader
func (*NerinyanDownloader) DownloadBeatmapset ¶
func (d *NerinyanDownloader) DownloadBeatmapset(beatmapsetId int) ([]byte, error)
func (*NerinyanDownloader) Name ¶
func (d *NerinyanDownloader) Name() string
type OfficialDownloader ¶
type OfficialDownloader struct {
AccessToken string
RefreshToken string
// contains filtered or unexported fields
}
func NewOfficialDownloader ¶
func NewOfficialDownloader(ctx context.Context, accessToken, refreshToken string) (*OfficialDownloader, error)
func NewOfficialDownloaderLogin ¶
func NewOfficialDownloaderLogin(ctx context.Context, username, password string) (*OfficialDownloader, error)
func (*OfficialDownloader) DownloadBeatmapset ¶
func (d *OfficialDownloader) DownloadBeatmapset(beatmapId int) ([]byte, error)
func (*OfficialDownloader) Name ¶
func (d *OfficialDownloader) Name() string
type SayobotDownloader ¶
type SayobotDownloader struct {
// contains filtered or unexported fields
}
func NewSayobotDownloader ¶
func NewSayobotDownloader(server string, ctx context.Context) *SayobotDownloader
func (*SayobotDownloader) DownloadBeatmapset ¶
func (d *SayobotDownloader) DownloadBeatmapset(beatmapsetId int) ([]byte, error)
func (*SayobotDownloader) Name ¶
func (d *SayobotDownloader) Name() string
Click to show internal directories.
Click to hide internal directories.