Documentation ¶
Overview ¶
See NIST SP 800-38A, pp 08-09
Index ¶
- Constants
- func BFDecrypt(buf []byte, bfKey string) ([]byte, error)
- func Download(id string, usertoken string) *bytes.Buffer
- func NewECBDecrypter(b cipher.Block) cipher.BlockMode
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- func Pad(src []byte) []byte
- type Data
- type DeezStruct
- type DeezTrack
- type OnError
- type ResultList
- type TrackData
Constants ¶
View Source
const ( // APIUrl is the deezer API APIUrl = "http://www.deezer.com/ajax/gw-light.php" // LoginURL is the API for deezer login LoginURL = "https://www.deezer.com/ajax/action.php" // deezer domain for cookie check Domain = "https://www.deezer.com" )
Variables ¶
This section is empty.
Functions ¶
func NewECBDecrypter ¶
NewECBDecrypter is used to decrypt the encrypted media
func NewECBEncrypter ¶
NewECBEncrypter is the encrypter used by deezer
Types ¶
type Data ¶
type Data struct {
DATA *TrackData `json:"DATA"`
}
Data Struct for getting track's json data
type DeezStruct ¶
type DeezStruct struct { Error []string `json:"error,omitempty"` Results *ResultList `json:"results,omitempty"` }
DeezStruct Struct for Json Data for Login
type DeezTrack ¶
type DeezTrack struct { Error []string `json:"error,omitempty"` Results *Data `json:"results,omitempty"` }
DeezTrack is Entry Point of the json Data
type ResultList ¶
type ResultList struct { DeezToken string `json:"checkForm,omitempty"` CheckFormLogin string `json:"checkFormLogin,omitempty"` }
ResultList The json struct for getting information for login
type TrackData ¶
type TrackData struct { ID json.Number `json:"SNG_ID"` MD5Origin string `json:"MD5_ORIGIN"` FileSize320 json.Number `json:"FILESIZE_MP3_320"` FileSize256 json.Number `json:"FILESIZE_MP3_256"` FileSize128 json.Number `json:"FILESIZE_MP3_128"` MediaVersion json.Number `json:"MEDIA_VERSION"` SngTitle string `json:"SNG_TITLE"` ArtName string `json:"ART_NAME"` }
TrackData Json struct for getting the returned json data
Click to show internal directories.
Click to hide internal directories.