provider

package
v0.0.0-...-92b59c9 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: GPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(music common.SearchMusic) common.Song

func Init

func Init()

func SearchSongFromAllSource

func SearchSongFromAllSource(key common.SearchSong) []*common.Song

func UpdateCacheMd5

func UpdateCacheMd5(music common.SearchMusic, md5 string)

Types

type Provider

type Provider interface {
	SearchSong(song common.SearchSong) (songs []*common.Song)
	GetSongUrl(searchSong common.SearchMusic, song *common.Song) *common.Song
	//search&get url
	ParseSong(searchSong common.SearchSong) *common.Song
}

func GetProvider

func GetProvider(kind string) Provider

func NewProvider

func NewProvider(kind string) Provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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