entity

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Album

type Album struct {
	ID     int    `json:"id"`
	Name   string `json:"name"`
	PicURL string `json:"picUrl"`
}

func (*Album) String

func (a *Album) String() string

type AlbumResult

type AlbumResult struct {
	Songs types.Slice[*Single] `json:"songs"`
	Album *Album               `json:"album"`
}

func (*AlbumResult) String

func (a *AlbumResult) String() string

type Artist

type Artist struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

func (*Artist) String

func (a *Artist) String() string

type Download

type Download struct {
	ID  int    `json:"id"`
	URL string `json:"url"`
}

func (*Download) String

func (d *Download) String() string

type DownloadResult

type DownloadResult struct {
	Data types.Slice[*Download] `json:"data"`
}

func (*DownloadResult) String

func (d *DownloadResult) String() string

type Playlist

type Playlist struct {
	Tracks types.Slice[*Single] `json:"tracks"`
}

func (*Playlist) String

func (p *Playlist) String() string

type PlaylistResult

type PlaylistResult struct {
	Playlist *Playlist `json:"playlist"`
}

func (*PlaylistResult) String

func (p *PlaylistResult) String() string

type Single

type Single struct {
	ID     int                  `json:"id"`
	Name   string               `json:"name"`
	Artist types.Slice[*Artist] `json:"ar"`
	Album  *Album               `json:"al"`
	URL    string               `json:"url"`
}

func (*Single) AllArtistTag added in v1.0.2

func (s *Single) AllArtistTag() string

func (*Single) CoverURL

func (s *Single) CoverURL() string

func (*Single) FileName

func (s *Single) FileName() string

func (*Single) SaveFileName

func (s *Single) SaveFileName() string

func (*Single) SavePath

func (s *Single) SavePath() string

func (*Single) String

func (s *Single) String() string

type SingleResult

type SingleResult struct {
	Songs types.Slice[*Single] `json:"songs"`
}

func (*SingleResult) String

func (s *SingleResult) String() string

Jump to

Keyboard shortcuts

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