download

package
v0.0.0-...-16924cb Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccessTokenFromLocal

func GetAccessTokenFromLocal() (string, string, error)

GetAccessTokenFromLocal get the access token & refresh token from local osu!lazer

Types

type BeatmapDownloader

type BeatmapDownloader interface {
	Name() string
	DownloadBeatmapset(beatmapId int) ([]byte, error)
}

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

type NerinyanDownloader struct {
	*http.Client
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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