music_search

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 3 Imported by: 0

README

音乐搜索 , 目前只有qq和网易

go get github.com/MichealJl/music-search

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Search(context.Context, *proto.SearchParams) (*proto.SearchRet, error)
	GetPlayUrl(context.Context, string) (*proto.GetPlayUrlRet, error)
	GetLyric(context.Context, string) (string, error)
}

func GetMusicDriver

func GetMusicDriver(platform Platform) Driver

type Platform

type Platform int8
const (
	TencentPlatform Platform = iota // qq音乐
	NeteasePlatform                 //网易云
)

Directories

Path Synopsis
qq

Jump to

Keyboard shortcuts

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