getters

package
v0.0.0-...-b14e7ae Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Proxy = ""

Functions

This section is empty.

Types

type ExtraInfo

type ExtraInfo struct {
	Site       string //网站
	RoomTitle  string //房间标题  youtube_upload
	RoomID     string //房间id
	CateName   string //分类
	RoomStatus string //直播状态
	StartTime  string //开始时间
	OwnerName  string //主播名  youtube_upload
}

获取一些额外信息

type Getter

type Getter interface {
	GetExtraInfo(string) (ExtraInfo, error)   //从其它接口获取一些需要的信息
	GetRoomInfo(string) (string, bool, error) //获取房间信息,参数为房间地址,返回房间号,是否开播
	GetLiveInfo(string) (LiveInfo, error)     //获取直播信息,参数为房间号,返回直播信息
	Site() string                             //返回平台名称
	SiteURL() string                          //返回平台首页
	SiteIcon() string                         //网站图标
	NeedFFMpeg() bool                         //是否需要FFmpeg
	FileExt() string                          //文件扩展名
}

Getter 房间/直播信息获取接口

func Getters

func Getters() []Getter

Getters 所有获取接口

type LiveInfo

type LiveInfo struct {
	RoomTitle   string
	LivingIMG   string
	VideoURL    string
	RoomDetails string
	RoomID      string
	LiveNick    string
}

LiveInfo 直播间信息结构

Jump to

Keyboard shortcuts

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