Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseAPI ¶
type BaseAPI struct {
// contains filtered or unexported fields
}
BaseAPI live info
func (*BaseAPI) GetLiveStatus ¶
GetLiveStatus get live status
func (*BaseAPI) GetPlatformName ¶
GetPlatformName return a name for live platform
type BilibiliLive ¶
type BilibiliLive struct { BaseAPI // contains filtered or unexported fields }
BilibiliLive bilibili live api
func NewBilibiliLive ¶
func NewBilibiliLive(base *BaseAPI) *BilibiliLive
NewBilibiliLive return a bilibililive struct
func (*BilibiliLive) RefreshLiveInfo ¶
func (b *BilibiliLive) RefreshLiveInfo() error
RefreshLiveInfo refresh live info
type LiveAPI ¶
type LiveAPI interface { RefreshLiveInfo() error GetLiveURL() string GetLiveStatus() bool GetPlatformName() string GetTitle() string GetAuthor() string }
LiveAPI interface
type YouTubeLive ¶
type YouTubeLive struct { BaseAPI // contains filtered or unexported fields }
YouTubeLive youtube live api
func NewYouTubeLive ¶
func NewYouTubeLive(base *BaseAPI) *YouTubeLive
NewYouTubeLive return a youtubeLive struct
func (*YouTubeLive) RefreshLiveInfo ¶
func (y *YouTubeLive) RefreshLiveInfo() error
RefreshLiveInfo refresh live info
Click to show internal directories.
Click to hide internal directories.