live_room

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

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 AuthAndConnect(client *http.Client, roomID uint64) (room *api.LiveRoom, err error)

func CheckAuth added in v1.1.0

func CheckAuth(client *http.Client) bool

func CheckCookieValid

func CheckCookieValid(client *http.Client, cookie string) bool

func ConnectDanmuServer

func ConnectDanmuServer(uid uint64, roomID uint64, info *api.DanmuInfoResp) (room *api.LiveRoom, err error)

func GetDanmuInfo

func GetDanmuInfo(client *http.Client, id uint64) (info *api.DanmuInfoResp, err error)

func GetRoomInfo

func GetRoomInfo(client *http.Client, roomID uint64) (info *api.RoomInfoResp, err error)

func GetUserInfo

func GetUserInfo(client *http.Client) *api.UserInfo

func GetUserRoomInfo

func GetUserRoomInfo(client *http.Client, roomID uint64) (info *api.UserRoomInfo, err error)

func PollLogin

func PollLogin(client *http.Client, data *api.QRCodeLoginData) (cookie string, err error)

func QRCodeLogin

func QRCodeLogin(client *http.Client) (data *api.QRCodeLoginData, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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