Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct { Id float64 `json:"albumId"` Name string `json:"album"` CoverUrl string `json:"albumPic"` }
Album contains all album data.
type Artist ¶
func (*Artist) UnmarshalJSON ¶
type Converter ¶
Converter converts raw data into formatted data.
func NewConverter ¶
NewConverter receives a NcmFile pointer and returns a converter pointer. NcmFile provides raw data.
func (*Converter) HandleKey ¶
HandleKey uses aes128 decrypt raw key and stores decrypted key into converter
func (*Converter) HandleMeta ¶
HandleMeta uses aes128 decrypt raw meta data, and parse it into struct Meta stored in converter.
func (*Converter) HandleMusic ¶
HandleMusic using resolved key parses music data.
type Meta ¶
type Meta struct { Id float64 `json:"musicId"` Name string `json:"musicName"` Album *Album `json:"-"` Artists []Artist `json:"artist"` BitRate float64 `json:"bitrate"` Duration float64 `json:"duration"` Format string `json:"format"` Comment string `json:"-"` }
Meta contains all meta data transform from meta data in json.
Click to show internal directories.
Click to hide internal directories.