Documentation ¶
Index ¶
- Variables
- func AuthAndConnect(client *http.Client, roomID uint64) (room *api.LiveRoom, err error)
- func CheckAuth(client *http.Client) bool
- func CheckCookieValid(client *http.Client, cookie string) bool
- func ConnectDanmuServer(uid uint64, roomID uint64, info *api.DanmuInfoResp) (room *api.LiveRoom, err error)
- func GetDanmuInfo(client *http.Client, id uint64) (info *api.DanmuInfoResp, err error)
- func GetRoomInfo(client *http.Client, roomID uint64) (info *api.RoomInfoResp, err error)
- func GetUserInfo(client *http.Client) *api.UserInfo
- func GetUserRoomInfo(client *http.Client, roomID uint64) (info *api.UserRoomInfo, err error)
- func PollLogin(client *http.Client, data *api.QRCodeLoginData) (cookie string, err error)
- func QRCodeLogin(client *http.Client) (data *api.QRCodeLoginData, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( QRCodeGenerateErr = errors.New("QRCode generate error") PollLoginError = errors.New("poll login failed") )
Functions ¶
func AuthAndConnect ¶
func ConnectDanmuServer ¶
func GetDanmuInfo ¶
func GetRoomInfo ¶
func GetUserRoomInfo ¶
func QRCodeLogin ¶
func QRCodeLogin(client *http.Client) (data *api.QRCodeLoginData, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.