Documentation ¶
Index ¶
- func GetLastFmConnection() *lastfm.Api
- func GetNeo4jConnection() *neoism.Database
- func GetOrCreateNode(label string, key string, props neoism.Props) (node *neoism.Node)
- func GetOrCreateRelationship(from *neoism.Node, to *neoism.Node, relType string, props neoism.Props) (relationship *neoism.Relationship)
- func ImportData()
- type Config
- type Emotions
- type Job
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLastFmConnection ¶
func GetNeo4jConnection ¶
func GetNeo4jConnection() *neoism.Database
func GetOrCreateNode ¶
func GetOrCreateRelationship ¶
func GetOrCreateRelationship(from *neoism.Node, to *neoism.Node, relType string, props neoism.Props) (relationship *neoism.Relationship)
func ImportData ¶
func ImportData()
Types ¶
type Config ¶
type Config struct { Neo4j struct { Scheme string Host string Port uint16 Username string Password string } LastFm struct { Key string Secret string Workers int Pages int } }
var AppConfig Config
type Job ¶
type Job struct { Tag string Url string Track struct { Rank string `xml:"rank,attr"` Name string `xml:"name"` Duration string `xml:"duration"` Mbid string `xml:"mbid"` Url string `xml:"url"` Streamable struct { FullTrack string `xml:"fulltrack,attr"` Streamable string `xml:"streamable"` } `xml:"streamable"` Artist struct { Name string `xml:"name"` Mbid string `xml:"mbid"` Url string `xml:"url"` } `xml:"artist"` Images []struct { Size string `xml:"size,attr"` Url string `xml:",chardata"` } `xml:"image"` } `xml:"track"` }
Click to show internal directories.
Click to hide internal directories.