Documentation ¶
Index ¶
- Variables
- func ExtractYoutubeID(message string) (id string, err error)
- type Playlist
- type Station
- func (s *Station) History(ctx context.Context) (playlist *Playlist, err error)
- func (s *Station) OnAir() (func(ctx context.Context, title string, youtubeUrl string), func())
- func (s *Station) SetBookmark(title string) error
- func (s *Station) Watch(ctx context.Context) (playlist *Playlist, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotYoutubeLink = errors.New("not a youtube link")
)
Functions ¶
func ExtractYoutubeID ¶
ExtractYoutubeID from message
Types ¶
type Playlist ¶
type Playlist struct {
// contains filtered or unexported fields
}
func NewPlaylist ¶
func NewPlaylist() *Playlist
Click to show internal directories.
Click to hide internal directories.