Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLocalfs ¶
func NewPostgres ¶
NewPostgres creates and initialises a Postgres DB at the given URL.
Types ¶
type ChordsDB ¶
type ChordsDB interface {
GetArtists() ([]string, error)
GetSongs(artist, id, query string) ([]SongMeta, error)
NewSong(SongMeta) (SongMeta, error)
UpdateSong(id string, meta SongMeta) (SongMeta, error)
DeleteSong(id string) error
GetChords(id string) (Chords, error)
UpdateChords(id string, chords Chords) (Chords, error)
SeeAlso(artist string) ([]string, error)
Search(query string) ([]types.SearchResult, error)
}
ChordsDB is the data abstraction used for the chords v0 API.
Click to show internal directories.
Click to hide internal directories.