Documentation
¶
Index ¶
Constants ¶
View Source
const ( DifficultyEasy = "easy" DifficultyNormal = "normal" DifficultyHard = "hard" DifficultyExpert = "expert" DifficultyExpertPlus = "expertPlus" CharacteristicStandard = "Standard" CharacteristicOneSaber = "OneSaber" CharacteristicNoArrows = "NoArrows" Characteristic360Degree = "360Degree" Characteristic90Degree = "90Degree" CharacteristicLawless = "Lawless" CharacteristicLightshow = "Lightshow" )
Variables ¶
This section is empty.
Functions ¶
func DefaultImage ¶ added in v0.1.3
DefaultImage returns a default image
Types ¶
type Cover ¶ added in v0.1.3
type Cover string
Cover type contains functions for base64 covers
func ImageToCover ¶ added in v0.1.3
ImageToCover reads an image object and makes a Cover
func ReaderToCover ¶ added in v0.1.3
ReaderToCover takes an io.Reader and returns a Cover
func (Cover) GetBase64Image ¶ added in v0.1.3
GetBase64Image returns the base64 image string
type CustomData ¶
type Difficulties ¶
type Playlist ¶
type Playlist struct {
Title string `json:"playlistTitle"`
Author string `json:"playlistAuthor,omitempty"`
Description string `json:"playlistDescription,omitempty"`
Cover Cover `json:"image,omitempty"` //base 64 encoded string
Songs []*Song `json:"songs"`
CustomData *CustomData `json:"CustomData,omitempty"`
}
func EmptyPlaylist ¶
func EmptyPlaylist() Playlist
EmptyPlaylist makes an empty playlist with the defaults
type Song ¶
type Song struct {
Hash string `json:"hash"` //REQUIRED FOR CUSTOM SONGS
LevelID string `json:"levelid"` // REQUIRED FOR OST SONGS
BeatSaverKey string `json:"key,omitempty"`
SongName string `json:"songName,omitempty"`
LevelAuthorName string `json:"levelAuthorName,omitempty"`
Difficulties []*Difficulties `json:"difficulties,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.