21 lines
465 B
Go
21 lines
465 B
Go
/*
|
|
* MumbleDJ
|
|
* By Matthieu Grieger
|
|
* interfaces/service.go
|
|
* Copyright (c) 2016 Matthieu Grieger (MIT License)
|
|
*/
|
|
|
|
package interfaces
|
|
|
|
import "github.com/layeh/gumble/gumble"
|
|
|
|
// Service is an interface of methods to be implemented
|
|
// by various service types, such as YouTube or SoundCloud.
|
|
type Service interface {
|
|
GetReadableName() string
|
|
GetFormat() string
|
|
CheckAPIKey() error
|
|
CheckURL(string) bool
|
|
GetTracks(string, *gumble.User) ([]Track, error)
|
|
}
|