importer

package
v0.0.0-...-1182f9f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2016 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLastFmConnection

func GetLastFmConnection() *lastfm.Api

func GetNeo4jConnection

func GetNeo4jConnection() *neoism.Database

func GetOrCreateNode

func GetOrCreateNode(label string, key string, props neoism.Props) (node *neoism.Node)

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 Emotions

type Emotions struct {
	Emotions map[string][]string
}
var AppEmotions Emotions

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL