Documentation ¶
Index ¶
- type BiliLiveConfig
- type DanmuAuthPacketReq
- type DanmuAuthPacketResp
- type DanmuInfoReq
- type DanmuInfoResp
- type DanmuMessage
- type DanmuMessageHeader
- type DanmuOp
- type DanmuProtol
- type LiveRoom
- type PollLoginResp
- type QRCodeGenerateResp
- type QRCodeLoginData
- type QRLoginStatus
- type RoomInfoReq
- type RoomInfoResp
- type SendMsgReq
- type UserInfo
- type UserRoomInfo
- type UserRoomProperty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BiliLiveConfig ¶
type DanmuAuthPacketReq ¶
type DanmuAuthPacketResp ¶
type DanmuAuthPacketResp struct {
Code uint32 `json:"code"`
}
type DanmuInfoReq ¶
type DanmuInfoReq struct {
ID uint64 `url:"id"`
}
type DanmuInfoResp ¶
type DanmuInfoResp struct { Code int `json:"code"` Message string `json:"message"` Ttl int `json:"ttl"` Data struct { Group string `json:"group"` BusinessId int `json:"business_id"` RefreshRowFactor float64 `json:"refresh_row_factor"` RefreshRate int `json:"refresh_rate"` MaxDelay int `json:"max_delay"` Token string `json:"token"` HostList []struct { Host string `json:"host"` Port int `json:"port"` WssPort int `json:"wss_port"` WsPort int `json:"ws_port"` } `json:"host_list"` } `json:"data"` }
type DanmuMessage ¶
type DanmuMessageHeader ¶
type DanmuMessageHeader struct { Size uint32 HeaderSize uint16 ProtoVer DanmuProtol OpCode DanmuOp Sequence uint32 }
type DanmuProtol ¶
type DanmuProtol uint16
const ( DanmuProtolNormal DanmuProtol = iota DanmuProtolHeartBeat DanmuProtolNormalZlib DanmuProtolNormalBrotli )
type PollLoginResp ¶
type PollLoginResp struct { Code int `json:"code"` Message string `json:"message"` Ttl int `json:"ttl"` Data struct { Url string `json:"url"` RefreshToken string `json:"refresh_token"` Timestamp int64 `json:"timestamp"` Code QRLoginStatus `json:"code"` Message string `json:"message"` } `json:"data"` }
type QRCodeGenerateResp ¶
type QRCodeLoginData ¶
type QRCodeLoginData struct { QRString string QRKey string Status QRLoginStatus }
type QRLoginStatus ¶
type QRLoginStatus uint32
const ( QRLoginSuccess QRLoginStatus = 0 QRLoginNotConfirm QRLoginStatus = 86090 QRLoginNotScan QRLoginStatus = 86101 QRLoginExpired QRLoginStatus = 86038 )
type RoomInfoReq ¶
type RoomInfoReq struct {
RoomID uint64 `url:"room_id"`
}
type RoomInfoResp ¶
type RoomInfoResp struct { Code int `json:"code"` Msg string `json:"msg"` Message string `json:"message"` Data struct { Uid int `json:"uid"` RoomId int `json:"room_id"` ShortId int `json:"short_id"` Attention int `json:"attention"` Online int `json:"online"` IsPortrait bool `json:"is_portrait"` Description string `json:"description"` LiveStatus int `json:"live_status"` AreaId int `json:"area_id"` ParentAreaId int `json:"parent_area_id"` ParentAreaName string `json:"parent_area_name"` OldAreaId int `json:"old_area_id"` Background string `json:"background"` Title string `json:"title"` UserCover string `json:"user_cover"` Keyframe string `json:"keyframe"` IsStrictRoom bool `json:"is_strict_room"` LiveTime string `json:"live_time"` Tags string `json:"tags"` IsAnchor int `json:"is_anchor"` RoomSilentType string `json:"room_silent_type"` RoomSilentLevel int `json:"room_silent_level"` RoomSilentSecond int `json:"room_silent_second"` AreaName string `json:"area_name"` Pendants string `json:"pendants"` AreaPendants string `json:"area_pendants"` HotWords []string `json:"hot_words"` HotWordsStatus int `json:"hot_words_status"` Verify string `json:"verify"` NewPendants struct { Frame struct { Name string `json:"name"` Value string `json:"value"` Position int `json:"position"` Desc string `json:"desc"` Area int `json:"area"` AreaOld int `json:"area_old"` BgColor string `json:"bg_color"` BgPic string `json:"bg_pic"` UseOldArea bool `json:"use_old_area"` } `json:"frame"` Badge struct { Name string `json:"name"` Position int `json:"position"` Value string `json:"value"` Desc string `json:"desc"` } `json:"badge"` MobileFrame struct { Name string `json:"name"` Value string `json:"value"` Position int `json:"position"` Desc string `json:"desc"` Area int `json:"area"` AreaOld int `json:"area_old"` BgColor string `json:"bg_color"` BgPic string `json:"bg_pic"` UseOldArea bool `json:"use_old_area"` } `json:"mobile_frame"` MobileBadge interface{} `json:"mobile_badge"` } `json:"new_pendants"` UpSession string `json:"up_session"` PkStatus int `json:"pk_status"` PkId int `json:"pk_id"` BattleId int `json:"battle_id"` AllowChangeAreaTime int `json:"allow_change_area_time"` AllowUploadCoverTime int `json:"allow_upload_cover_time"` StudioInfo struct { Status int `json:"status"` MasterList []interface{} `json:"master_list"` } `json:"studio_info"` } `json:"data"` }
type SendMsgReq ¶
type UserRoomInfo ¶
type UserRoomInfo struct { Code int `json:"code"` Message string `json:"message"` Ttl int `json:"ttl"` Data struct { Property UserRoomProperty `json:"property"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.