Documentation ¶
Index ¶
- Variables
- type Connection
- type ConnectionNeoImpl
- func (c ConnectionNeoImpl) ClearDbPerLabel(label string)
- func (c ConnectionNeoImpl) DeleteArtist(id string)
- func (c ConnectionNeoImpl) FindAlbum(title string) *Album
- func (c ConnectionNeoImpl) FindAlbums(artist Artist) []Album
- func (c ConnectionNeoImpl) FindArtists(name string) []Artist
- func (c ConnectionNeoImpl) FindSongsByArtist(artistName string) []Song
- func (c ConnectionNeoImpl) SaveAlbum(artist Artist, al Album)
- func (c ConnectionNeoImpl) SaveAlbums(artist Artist, albums []Album)
- func (c ConnectionNeoImpl) SaveArtist(a Artist)
- func (c ConnectionNeoImpl) SaveArtists(artists []Artist)
- func (c ConnectionNeoImpl) SaveSong(song Song)
- func (c ConnectionNeoImpl) ToString() string
- type ConnectionTestImpl
- func (c *ConnectionTestImpl) ClearDbPerLabel(label string)
- func (c *ConnectionTestImpl) DeleteArtist(id string)
- func (c *ConnectionTestImpl) FindAlbum(title string) *Album
- func (c *ConnectionTestImpl) FindAlbums(artist Artist) []Album
- func (c *ConnectionTestImpl) FindArtists(name string) []Artist
- func (c *ConnectionTestImpl) FindSongsByArtist(artistName string) []Song
- func (c *ConnectionTestImpl) SaveAlbum(artist Artist, a Album)
- func (c *ConnectionTestImpl) SaveAlbums(artist Artist, albums []Album)
- func (c *ConnectionTestImpl) SaveArtist(a Artist)
- func (c *ConnectionTestImpl) SaveArtists(artists []Artist)
- func (c *ConnectionTestImpl) SaveSong(song Song)
- func (c *ConnectionTestImpl) ToString() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ARTIST_ALBUM_ARROW = "alb"
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface { //Artist SaveArtist(a Artist) SaveArtists(artists []Artist) FindArtists(name string) []Artist DeleteArtist(id string) //Album SaveAlbum(artist Artist, a Album) SaveAlbums(artist Artist, albums []Album) FindAlbum(title string) *Album FindAlbums(artist Artist) []Album //Songs FindSongsByArtist(artistName string) []Song SaveSong(song Song) //Clear ClearDbPerLabel(label string) //Others ToString() string }
func CreateNewConnection ¶
func CreateNewConnection(specialLabel ...string) Connection
func CreateNewConnectionForTest ¶
func CreateNewConnectionForTest() Connection
type ConnectionNeoImpl ¶
type ConnectionNeoImpl struct {
// contains filtered or unexported fields
}
*
Implements Connection
func NewConnectionNeo ¶
func NewConnectionNeo(dbpath string, db *neoism.Database, specialLabels ...string) ConnectionNeoImpl
func (ConnectionNeoImpl) ClearDbPerLabel ¶
func (c ConnectionNeoImpl) ClearDbPerLabel(label string)
func (ConnectionNeoImpl) DeleteArtist ¶
func (c ConnectionNeoImpl) DeleteArtist(id string)
func (ConnectionNeoImpl) FindAlbum ¶
func (c ConnectionNeoImpl) FindAlbum(title string) *Album
func (ConnectionNeoImpl) FindAlbums ¶
func (c ConnectionNeoImpl) FindAlbums(artist Artist) []Album
func (ConnectionNeoImpl) FindArtists ¶
func (c ConnectionNeoImpl) FindArtists(name string) []Artist
func (ConnectionNeoImpl) FindSongsByArtist ¶
func (c ConnectionNeoImpl) FindSongsByArtist(artistName string) []Song
func (ConnectionNeoImpl) SaveAlbum ¶
func (c ConnectionNeoImpl) SaveAlbum(artist Artist, al Album)
func (ConnectionNeoImpl) SaveAlbums ¶
func (c ConnectionNeoImpl) SaveAlbums(artist Artist, albums []Album)
Album
func (ConnectionNeoImpl) SaveArtist ¶
func (c ConnectionNeoImpl) SaveArtist(a Artist)
func (ConnectionNeoImpl) SaveArtists ¶
func (c ConnectionNeoImpl) SaveArtists(artists []Artist)
func (ConnectionNeoImpl) SaveSong ¶
func (c ConnectionNeoImpl) SaveSong(song Song)
func (ConnectionNeoImpl) ToString ¶
func (c ConnectionNeoImpl) ToString() string
type ConnectionTestImpl ¶
type ConnectionTestImpl struct {
// contains filtered or unexported fields
}
*
Implements Connection
func NewConnectionTest ¶
func NewConnectionTest() ConnectionTestImpl
func (*ConnectionTestImpl) ClearDbPerLabel ¶
func (c *ConnectionTestImpl) ClearDbPerLabel(label string)
func (*ConnectionTestImpl) DeleteArtist ¶
func (c *ConnectionTestImpl) DeleteArtist(id string)
func (*ConnectionTestImpl) FindAlbum ¶
func (c *ConnectionTestImpl) FindAlbum(title string) *Album
func (*ConnectionTestImpl) FindAlbums ¶
func (c *ConnectionTestImpl) FindAlbums(artist Artist) []Album
func (*ConnectionTestImpl) FindArtists ¶
func (c *ConnectionTestImpl) FindArtists(name string) []Artist
func (*ConnectionTestImpl) FindSongsByArtist ¶
func (c *ConnectionTestImpl) FindSongsByArtist(artistName string) []Song
func (*ConnectionTestImpl) SaveAlbum ¶
func (c *ConnectionTestImpl) SaveAlbum(artist Artist, a Album)
func (*ConnectionTestImpl) SaveAlbums ¶
func (c *ConnectionTestImpl) SaveAlbums(artist Artist, albums []Album)
func (*ConnectionTestImpl) SaveArtist ¶
func (c *ConnectionTestImpl) SaveArtist(a Artist)
func (*ConnectionTestImpl) SaveArtists ¶
func (c *ConnectionTestImpl) SaveArtists(artists []Artist)
func (*ConnectionTestImpl) SaveSong ¶
func (c *ConnectionTestImpl) SaveSong(song Song)
func (*ConnectionTestImpl) ToString ¶
func (c *ConnectionTestImpl) ToString() string
Click to show internal directories.
Click to hide internal directories.