aboutsummaryrefslogtreecommitdiff
path: root/backend.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend.go')
-rw-r--r--backend.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend.go b/backend.go
index 9f778b2..dd34fcc 100644
--- a/backend.go
+++ b/backend.go
@@ -7,7 +7,7 @@ import (
type Backend interface {
Play(song *Song, player Player)
- Search(keyword string) []Song
+ Search(map[string]string) []Song
OnSongFinished(song *Song)
}
@@ -15,8 +15,8 @@ type DummyBackend struct{}
func (dummy *DummyBackend) Play(song *Song, player Player) {}
func (dummy *DummyBackend) OnSongFinished(song *Song) {}
-func (dummy *DummyBackend) Search(keyword string) []Song {
- s := NewDummySong("Dummy Mc Crashtest", "exactly "+keyword)
+func (dummy *DummyBackend) Search(map[string]string) []Song {
+ s := NewDummySong("Dummy Mc Crashtest", "foo")
return []Song{s}
}