sources

package
v0.0.0-...-25ef46c Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IStream

type IStream interface {
	FetchManyByManyURLs(urls []string) ([]*player.Song, error)
}

func NewStream

func NewStream() IStream

type IYoutube

type IYoutube interface {
	FetchOneByURL(url string) (*player.Song, error)
	FetchManyByURL(url string) ([]*player.Song, error)
	FetchManyByManyURLs(urls []string) ([]*player.Song, error)
	FetchManyByManyIDs(guildID string, ids []int) ([]*player.Song, error)
	FetchManyByTitle(title string) ([]*player.Song, error)
}

func NewYoutube

func NewYoutube() IYoutube

type Stream

type Stream struct{}

func (*Stream) FetchManyByManyURLs

func (s *Stream) FetchManyByManyURLs(urls []string) ([]*player.Song, error)

type Youtube

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

func (*Youtube) FetchManyByManyIDs

func (y *Youtube) FetchManyByManyIDs(guildID string, ids []int) ([]*player.Song, error)

-- ID --

func (*Youtube) FetchManyByManyURLs

func (y *Youtube) FetchManyByManyURLs(urls []string) ([]*player.Song, error)

func (*Youtube) FetchManyByTitle

func (y *Youtube) FetchManyByTitle(title string) ([]*player.Song, error)

-- Title --

func (*Youtube) FetchManyByURL

func (y *Youtube) FetchManyByURL(url string) ([]*player.Song, error)

func (*Youtube) FetchOneByURL

func (y *Youtube) FetchOneByURL(url string) (*player.Song, error)

-- URL --

Jump to

Keyboard shortcuts

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