Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRoomNotExist = errors.New("room not exists") ErrRoomUrlIncorrect = errors.New("room url incorrect") ErrInternalError = errors.New("internal error") )
View Source
var CommonUserAgent = requests.UserAgent(userAgent)
Functions ¶
Types ¶
type Info ¶
type Info struct { Live Live HostName, RoomName string Status, Listening, Recoding, Uploading bool }
func (*Info) MarshalJSON ¶
type Live ¶
type Live interface { GetLiveId() ID NeedUpload() bool SetUpload(bool) SetUploadPath(string) GetUploadPath() string GetRawUrl() string GetInfo() (*Info, error) GetUploadInfo() bool SetUploadInfo(bool) GetStreamUrls() ([]*url.URL, error) GetPlatformCNName() string GetLastStartTime() time.Time SetLastStartTime(time.Time) }
Click to show internal directories.
Click to hide internal directories.