ym

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YM

type YM struct {
	// contains filtered or unexported fields
}

func New

func New(
	playlist *playlist.Playlist,
	search search.Engine,
	player player.Player,
	cache *cache.Cache,
	sock *net.TCPAddr,
	downloadPreflights int,
) *YM

func (*YM) ExecPage

func (ym *YM) ExecPage(url string) ([]search.Result, error)

func (*YM) ExecSearch

func (ym *YM) ExecSearch(q string, amount int) ([]search.Result, error)

func (*YM) Listen

func (ym *YM) Listen() error

func (*YM) Play

func (ym *YM) Play(
	queue <-chan *command.Command,
	current chan<- search.Result,
	status chan<- string,
	errs chan<- error,
	quit <-chan struct{},
) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL