Documentation ¶
Index ¶
- func NewBiliBili() (model.Client, error)
- type BiliBili
- func (c *BiliBili) Enter(room string) (int, [][]byte, error)
- func (c *BiliBili) GetPlayURL(room string, qn int) (*model.PlayURL, error)
- func (c *BiliBili) GetRoomInfo(room string) (*model.RoomInfo, error)
- func (c *BiliBili) Handle(tp int, data []byte) ([]model.Msg, bool, error)
- func (c *BiliBili) HeartBeat() (int, []byte, error)
- func (c *BiliBili) Host(room string) string
- func (c *BiliBili) Plat() string
- func (c *BiliBili) SendDanmaku(room string, content string, tp int, color int64) error
- func (c *BiliBili) Stop()
- type BiliComm
- func (c *BiliComm) Enter(room string) (int, [][]byte, error)
- func (c *BiliComm) GetPlayURL(room string, qn int) (*model.PlayURL, error)
- func (c *BiliComm) GetRoomInfo(room string) (*model.RoomInfo, error)
- func (c *BiliComm) Handle(tp int, data []byte) ([]model.Msg, bool, error)
- func (c *BiliComm) HeartBeat() (int, []byte, error)
- func (c *BiliComm) Host(room string) string
- func (c *BiliComm) Plat() string
- func (c *BiliComm) SendDanmaku(room string, content string, tp int, color int64) error
- func (c *BiliComm) Stop()
- type Danmaku
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BiliBili ¶
type BiliBili struct {
// contains filtered or unexported fields
}
func (*BiliBili) GetPlayURL ¶
GetPlayURL .
func (*BiliBili) GetRoomInfo ¶
GetRoomInfo .
func (*BiliBili) SendDanmaku ¶
type BiliComm ¶
type BiliComm struct {
// contains filtered or unexported fields
}
func (*BiliComm) GetPlayURL ¶
GetPlayURL .
func (*BiliComm) GetRoomInfo ¶
GetRoomInfo .
func (*BiliComm) SendDanmaku ¶
type Danmaku ¶
type Danmaku struct { SendMode int `json:"send_mode"` SendFontSize int `json:"send_font_size"` DanmakuColor int64 `json:"danmaku_color"` Time int64 `json:"time"` DMID int64 `json:"dmid"` MsgType int `json:"msg_type"` Bubble string `json:"bubble"` Content string `json:"content"` MID int64 `json:"mid"` Uname string `json:"uname"` RoomAdmin int `json:"room_admin"` Vip int `json:"vip"` SVip int `json:"svip"` Rank int `json:"rank"` MobileVerify int `json:"mobile_verify"` UnameColor string `json:"uname_color"` MedalName string `json:"medal_name"` UpName string `json:"up_name"` MedalLevel int `json:"medal_level"` UserLevel int `json:"user_level"` }
Click to show internal directories.
Click to hide internal directories.