move last fm server package

This commit is contained in:
sentriz
2019-05-24 14:49:38 +01:00
parent 128a326c8a
commit 6cb40b8d57
4 changed files with 2 additions and 2 deletions

21
server/lastfm/models.go Normal file
View File

@@ -0,0 +1,21 @@
package lastfm
import "encoding/xml"
type LastFM struct {
XMLName xml.Name `xml:"lfm"`
Status string `xml:"status,attr"`
Session *Session `xml:"session"`
Error *Error `xml:"error"`
}
type Session struct {
Name string `xml:"name"`
Key string `xml:"key"`
Subscriber uint `xml:"subscriber"`
}
type Error struct {
Code uint `xml:"code,attr"`
Value string `xml:",chardata"`
}