Versions in this module Expand all Collapse all v0 v0.0.3 Jun 3, 2020 Changes in this version type GiftInfo + Face string + TotalCoin int v0.0.2 Jun 3, 2020 v0.0.1 Jun 3, 2020 Changes in this version + func DebugHandler(c *Context) + func DefaultHandler(c *Context) + type BiliLiveClient struct + ChatHost string + ChatPort int + func NewBiliBiliClient() *BiliLiveClient + func (bili *BiliLiveClient) ConnectServer(roomID int) error + func (bili *BiliLiveClient) GetRoomID() int + func (bili *BiliLiveClient) RegHandleFunc(cmd CmdType, hfunc HandleFunc) + func (bili *BiliLiveClient) Run() + func (bili *BiliLiveClient) SendJoinChannel(channelID int) error + func (bili *BiliLiveClient) Write(data []byte) error + type CmdType string + const CmdAll + const CmdDanmuMsg + const CmdLive + const CmdNoticeMsg + const CmdOnlineChange + const CmdPreparing + const CmdSendGift + const CmdSuperChatMsg + const CmdWelcome + const CmdWelcomeGuard + type ConnType string + type Context struct + Cmd CmdType + Msg *simplejson.Json + RoomID int + func (c *Context) Abort() + func (c *Context) IsAbort() bool + func (p *Context) GetDanmuInfo() (dInfo DanmuInfo) + func (p *Context) GetGiftInfo() *GiftInfo + func (p *Context) GetNoticeMsg() (nMsg NoticeMsg) + func (p *Context) GetOnlineNumber() int + func (p *Context) GetSuperChatMsg() *SuperChatMsg + func (p *Context) GetWelcomeGuardInfo() (wInfo WelcomeGuardInfo) + func (p *Context) GetWelcomeInfo() (wInfo WelcomeInfo) + type DanmuInfo struct + Level int + MedalAnchor string + MedalLevel int + MedalName string + Rank int + Text string + UID int + Uname string + type GiftInfo struct + Action string + AddFollow int + BeatID string + BizSource string + Capsule struct{ ... } + CoinType string + EventNum int + EventScore int + GiftID int + GiftName string + GiftType int + Gold int + Metadata string + NewMedal int + NewTitle int + Num int + Price int + Rcost int + Remain int + Rnd string + Silver int + Super int + Timestamp int + Title string + TopList ... + UID int + Uname string + type HandleFunc func(c *Context) + func (f HandleFunc) HandleFunc(context *Context) + type NoticeMsg struct + MsgCommon string + type SuperChatMsg struct + BackgroundBottomColor string + BackgroundColor string + BackgroundIcon string + BackgroundImage string + BackgroundPriceColor string + EndTime int64 + Gift struct{ ... } + Id int64 + IsRanked int + Message string + MessageTrans string + Price float64 + Rate float64 + StartTime int64 + Time int64 + Token string + TransMark int + Ts int64 + Uid int64 + UserInfo struct{ ... } + type WelcomeGuardInfo struct + GuardLevel string + UID int + Username string + type WelcomeInfo struct + IsAdmin bool + Svip int + UID int + Uname string + Vip int