Versions in this module Expand all Collapse all v0 v0.1.4-alpha.4 Dec 19, 2022 v0.1.4-SNAPSHOT Sep 21, 2022 v0.1.3 Dec 28, 2021 Changes in this version + const WsDefaultHost + type AnchorLotAward struct + AwardImage string + AwardName string + AwardNum int + AwardUsers []struct{ ... } + ID int64 + LotStatus int + Url string + WebUrl string + type AnchorLotCheckStatus struct + ID int64 + RejectReason string + Status int + Uid int64 + type AnchorLotStart struct + AssetIcon string + AwardImage string + AwardName string + AwardNum int + CurGiftNum int + CurrentTime int64 + Danmu string + GiftID int64 + GiftName string + GiftNum int + GiftPrice int + GoawayTime int + GoodsID int64 + ID int64 + IsBroadcast int + JoinType int + LotStatus int + MaxTime int + RequireText string + RequireType int + RequireValue int + RoomID int64 + SendGiftEnsure int + ShowPanel int + Status int + Time int64 + Url string + WebUrl string + type Danmaku struct + Bubble string + Content string + DMID int64 + DanmakuColor int64 + MID int64 + MedalLevel int + MedalName string + MobileVerify int + MsgType int + Rank int + RoomAdmin int + SVip int + SendFontSize int + SendMode int + Time int64 + Uname string + UnameColor string + UpName string + UserLevel int + Vip int + type FansUpdate struct + Fans int + FansClub int + RedNotice int + RoomID int64 + type GuardBuy struct + EndTime int64 + GiftID int64 + GiftName string + GuardLevel int + Num int + Price int + StartTime int64 + UID int64 + Username string + type HotRankChanged struct + AreaName string + BlinkUrl string + Countdown int + Icon string + LiveLinkUrl string + LiveUrl string + PCLinkUrl string + Rank int + Timestamp int64 + Trend int + WebUrl string + type HotRankSettlement struct + AreaName string + CacheKey string + DmMsg string + DmScore int + Face string + Icon string + Rank int + Timestamp int64 + Uname string + Url string + type InteractWord struct + Contribution struct{ ... } + Dmscore int + FansMedal struct{ ... } + Identities []int + IsSpread int + MsgType int + Roomid int + Score int64 + SpreadDesc string + SpreadInfo string + TailIcon int + Timestamp int64 + TriggerTime int64 + UID int64 + Uname string + UnameColor string + type Live struct + Rev chan *Transport + func NewLive(debug bool, heartbeat time.Duration, cache int, recover func(error)) *Live + func (l *Live) Conn(dialer *websocket.Dialer, host string) error + func (l *Live) Enter(ctx context.Context, room int64, key string, uid int64) error + type Msg interface + Cmd func() string + Raw func() []byte + type MsgActivityBannerUpdateV2 struct + func (m *MsgActivityBannerUpdateV2) Cmd() string + func (m *MsgActivityBannerUpdateV2) Raw() []byte + type MsgActivityRedPacket struct + func (m *MsgActivityRedPacket) Cmd() string + func (m *MsgActivityRedPacket) Raw() []byte + type MsgAnchorLotAward struct + func (m *MsgAnchorLotAward) Cmd() string + func (m *MsgAnchorLotAward) Parse() (*AnchorLotAward, error) + func (m *MsgAnchorLotAward) Raw() []byte + type MsgAnchorLotCheckStatus struct + func (m *MsgAnchorLotCheckStatus) Cmd() string + func (m *MsgAnchorLotCheckStatus) Parse() (*AnchorLotCheckStatus, error) + func (m *MsgAnchorLotCheckStatus) Raw() []byte + type MsgAnchorLotEnd struct + func (m *MsgAnchorLotEnd) Cmd() string + func (m *MsgAnchorLotEnd) GetID() int64 + func (m *MsgAnchorLotEnd) Raw() []byte + type MsgAnchorLotStart struct + func (m *MsgAnchorLotStart) Cmd() string + func (m *MsgAnchorLotStart) Parse() (*AnchorLotStart, error) + func (m *MsgAnchorLotStart) Raw() []byte + type MsgAttention struct + func (m *MsgAttention) Cmd() string + func (m *MsgAttention) Raw() []byte + type MsgAttentionOnOpposite struct + func (m *MsgAttentionOnOpposite) Cmd() string + func (m *MsgAttentionOnOpposite) Raw() []byte + type MsgAttentionOpposite struct + func (m *MsgAttentionOpposite) Cmd() string + func (m *MsgAttentionOpposite) Raw() []byte + type MsgBlock struct + func (m *MsgBlock) Cmd() string + func (m *MsgBlock) Raw() []byte + type MsgCallOnOpposite struct + func (m *MsgCallOnOpposite) Cmd() string + func (m *MsgCallOnOpposite) Raw() []byte + type MsgComboSend struct + func (m *MsgComboSend) Cmd() string + func (m *MsgComboSend) Raw() []byte + type MsgCutOff struct + func (m *MsgCutOff) Cmd() string + func (m *MsgCutOff) Raw() []byte + type MsgDanmaku struct + func (m *MsgDanmaku) Cmd() string + func (m *MsgDanmaku) Parse() (*Danmaku, error) + func (m *MsgDanmaku) Raw() []byte + type MsgEntryEffect struct + func (m *MsgEntryEffect) Cmd() string + func (m *MsgEntryEffect) Raw() []byte + type MsgFansUpdate struct + func (m *MsgFansUpdate) Cmd() string + func (m *MsgFansUpdate) Parse() (*FansUpdate, error) + func (m *MsgFansUpdate) Raw() []byte + type MsgGeneral struct + func (m *MsgGeneral) Cmd() string + func (m *MsgGeneral) Raw() []byte + type MsgGuardBuy struct + func (m *MsgGuardBuy) Cmd() string + func (m *MsgGuardBuy) Parse() (*GuardBuy, error) + func (m *MsgGuardBuy) Raw() []byte + type MsgGuardMsg struct + func (m *MsgGuardMsg) Cmd() string + func (m *MsgGuardMsg) Raw() []byte + type MsgHeartbeatReply struct + func (m *MsgHeartbeatReply) Cmd() string + func (m *MsgHeartbeatReply) GetHot() int + func (m *MsgHeartbeatReply) Raw() []byte + type MsgHotRank struct + func (m *MsgHotRank) Cmd() string + func (m *MsgHotRank) Raw() []byte + type MsgHotRankChanged struct + func (m *MsgHotRankChanged) Cmd() string + func (m *MsgHotRankChanged) Parse() (*HotRankChanged, error) + func (m *MsgHotRankChanged) Raw() []byte + type MsgHotRankSettlement struct + func (m *MsgHotRankSettlement) Cmd() string + func (m *MsgHotRankSettlement) Parse() (*HotRankSettlement, error) + func (m *MsgHotRankSettlement) Raw() []byte + type MsgHotRoomNotify struct + func (m *MsgHotRoomNotify) Cmd() string + func (m *MsgHotRoomNotify) Raw() []byte + type MsgInteractWord struct + func (m *MsgInteractWord) Cmd() string + func (m *MsgInteractWord) Parse() (*InteractWord, error) + func (m *MsgInteractWord) Raw() []byte + type MsgLive struct + func (m *MsgLive) Cmd() string + func (m *MsgLive) Raw() []byte + type MsgLiveInteractiveGame struct + func (m *MsgLiveInteractiveGame) Cmd() string + func (m *MsgLiveInteractiveGame) Raw() []byte + type MsgNewGuardCount struct + func (m *MsgNewGuardCount) Cmd() string + func (m *MsgNewGuardCount) Raw() []byte + type MsgNoticeMsg struct + func (m *MsgNoticeMsg) Cmd() string + func (m *MsgNoticeMsg) Parse() (*NoticeMsg, error) + func (m *MsgNoticeMsg) Raw() []byte + type MsgOnlineRankCount struct + func (m *MsgOnlineRankCount) Cmd() string + func (m *MsgOnlineRankCount) GetCount() int + func (m *MsgOnlineRankCount) Raw() []byte + type MsgOnlineRankTop3 struct + func (m *MsgOnlineRankTop3) Cmd() string + func (m *MsgOnlineRankTop3) Parse() (*OnlineRankTop3, error) + func (m *MsgOnlineRankTop3) Raw() []byte + type MsgOnlineRankV2 struct + func (m *MsgOnlineRankV2) Cmd() string + func (m *MsgOnlineRankV2) Parse() (*OnlineRankV2, error) + func (m *MsgOnlineRankV2) Raw() []byte + type MsgPkAttention struct + func (m *MsgPkAttention) Cmd() string + func (m *MsgPkAttention) Raw() []byte + type MsgPkBattleEnd struct + func (m *MsgPkBattleEnd) Cmd() string + func (m *MsgPkBattleEnd) Raw() []byte + type MsgPkBattlePre struct + func (m *MsgPkBattlePre) Cmd() string + func (m *MsgPkBattlePre) Raw() []byte + type MsgPkBattleProcess struct + func (m *MsgPkBattleProcess) Cmd() string + func (m *MsgPkBattleProcess) Raw() []byte + type MsgPkBattleSettle struct + func (m *MsgPkBattleSettle) Cmd() string + func (m *MsgPkBattleSettle) Raw() []byte + type MsgPkBattleSettleUser struct + func (m *MsgPkBattleSettleUser) Cmd() string + func (m *MsgPkBattleSettleUser) Raw() []byte + type MsgPkBattleSettleV2 struct + func (m *MsgPkBattleSettleV2) Cmd() string + func (m *MsgPkBattleSettleV2) Raw() []byte + type MsgPkBattleStart struct + func (m *MsgPkBattleStart) Cmd() string + func (m *MsgPkBattleStart) Raw() []byte + type MsgPkBestUname struct + func (m *MsgPkBestUname) Cmd() string + func (m *MsgPkBestUname) Raw() []byte + type MsgPkDanmuMsg struct + func (m *MsgPkDanmuMsg) Cmd() string + func (m *MsgPkDanmuMsg) Raw() []byte + type MsgPkEnd struct + func (m *MsgPkEnd) Cmd() string + func (m *MsgPkEnd) Raw() []byte + type MsgPkEnding struct + func (m *MsgPkEnding) Cmd() string + func (m *MsgPkEnding) Raw() []byte + type MsgPkInteractWord struct + func (m *MsgPkInteractWord) Cmd() string + func (m *MsgPkInteractWord) Raw() []byte + type MsgPkLotteryStart struct + func (m *MsgPkLotteryStart) Cmd() string + func (m *MsgPkLotteryStart) Raw() []byte + type MsgPkMatchInfo struct + func (m *MsgPkMatchInfo) Cmd() string + func (m *MsgPkMatchInfo) Raw() []byte + type MsgPkMatchOnlineGuard struct + func (m *MsgPkMatchOnlineGuard) Cmd() string + func (m *MsgPkMatchOnlineGuard) Raw() []byte + type MsgPkMicEnd struct + func (m *MsgPkMicEnd) Cmd() string + func (m *MsgPkMicEnd) Raw() []byte + type MsgPkPre struct + func (m *MsgPkPre) Cmd() string + func (m *MsgPkPre) Raw() []byte + type MsgPkSendGift struct + func (m *MsgPkSendGift) Cmd() string + func (m *MsgPkSendGift) Raw() []byte + type MsgPkSettle struct + func (m *MsgPkSettle) Cmd() string + func (m *MsgPkSettle) Raw() []byte + type MsgPkShare struct + func (m *MsgPkShare) Cmd() string + func (m *MsgPkShare) Raw() []byte + type MsgPkWinningStreak struct + func (m *MsgPkWinningStreak) Cmd() string + func (m *MsgPkWinningStreak) Raw() []byte + type MsgPlayProgressBar struct + func (m *MsgPlayProgressBar) Cmd() string + func (m *MsgPlayProgressBar) Raw() []byte + type MsgPlayTag struct + func (m *MsgPlayTag) Cmd() string + func (m *MsgPlayTag) Raw() []byte + type MsgPreparing struct + func (m *MsgPreparing) Cmd() string + func (m *MsgPreparing) Raw() []byte + type MsgRefresh struct + func (m *MsgRefresh) Cmd() string + func (m *MsgRefresh) Raw() []byte + type MsgRoomAdmins struct + func (m *MsgRoomAdmins) Cmd() string + func (m *MsgRoomAdmins) Raw() []byte + type MsgRoomBlockMsg struct + func (m *MsgRoomBlockMsg) Cmd() string + func (m *MsgRoomBlockMsg) Parse() (*RoomBlockMsg, error) + func (m *MsgRoomBlockMsg) Raw() []byte + type MsgRoomChange struct + func (m *MsgRoomChange) Cmd() string + func (m *MsgRoomChange) Parse() (*RoomChange, error) + func (m *MsgRoomChange) Raw() []byte + type MsgRoomLimit struct + func (m *MsgRoomLimit) Cmd() string + func (m *MsgRoomLimit) Raw() []byte + type MsgRoomRank struct + func (m *MsgRoomRank) Cmd() string + func (m *MsgRoomRank) Raw() []byte + type MsgRound struct + func (m *MsgRound) Cmd() string + func (m *MsgRound) Raw() []byte + type MsgSendGift struct + func (m *MsgSendGift) Cmd() string + func (m *MsgSendGift) Parse() (*SendGift, error) + func (m *MsgSendGift) Raw() []byte + type MsgShare struct + func (m *MsgShare) Cmd() string + func (m *MsgShare) Raw() []byte + type MsgShareOpposite struct + func (m *MsgShareOpposite) Cmd() string + func (m *MsgShareOpposite) Raw() []byte + type MsgSpecialAttention struct + func (m *MsgSpecialAttention) Cmd() string + func (m *MsgSpecialAttention) Raw() []byte + type MsgSpecialGift struct + func (m *MsgSpecialGift) Cmd() string + func (m *MsgSpecialGift) Raw() []byte + type MsgStopLiveRoomList struct + func (m *MsgStopLiveRoomList) Cmd() string + func (m *MsgStopLiveRoomList) GetList() ([]int64, error) + func (m *MsgStopLiveRoomList) Raw() []byte + type MsgSuperChatMessage struct + func (m *MsgSuperChatMessage) Cmd() string + func (m *MsgSuperChatMessage) Parse() (*SuperChatMessage, error) + func (m *MsgSuperChatMessage) Raw() []byte + type MsgSuperChatMessageDelete struct + func (m *MsgSuperChatMessageDelete) Cmd() string + func (m *MsgSuperChatMessageDelete) GetList() ([]int64, error) + func (m *MsgSuperChatMessageDelete) Raw() []byte + type MsgSuperChatMessageJPN struct + func (m *MsgSuperChatMessageJPN) Cmd() string + func (m *MsgSuperChatMessageJPN) Parse() (*SuperChatMessageJPN, error) + func (m *MsgSuperChatMessageJPN) Raw() []byte + type MsgSysGift struct + func (m *MsgSysGift) Cmd() string + func (m *MsgSysGift) Raw() []byte + type MsgSysMsg struct + func (m *MsgSysMsg) Cmd() string + func (m *MsgSysMsg) Raw() []byte + type MsgUserToastMsg struct + func (m *MsgUserToastMsg) Cmd() string + func (m *MsgUserToastMsg) Parse() (*UserToastMsg, error) + func (m *MsgUserToastMsg) Raw() []byte + type MsgVoiceJoinList struct + func (m *MsgVoiceJoinList) Cmd() string + func (m *MsgVoiceJoinList) Parse() (*VoiceJoinList, error) + func (m *MsgVoiceJoinList) Raw() []byte + type MsgVoiceJoinRoomCountInfo struct + func (m *MsgVoiceJoinRoomCountInfo) Cmd() string + func (m *MsgVoiceJoinRoomCountInfo) Parse() (*VoiceJoinRoomCountInfo, error) + func (m *MsgVoiceJoinRoomCountInfo) Raw() []byte + type MsgVoiceJoinStatus struct + func (m *MsgVoiceJoinStatus) Cmd() string + func (m *MsgVoiceJoinStatus) Raw() []byte + type MsgWelcome struct + func (m *MsgWelcome) Cmd() string + func (m *MsgWelcome) Raw() []byte + type MsgWelcomeGuard struct + func (m *MsgWelcomeGuard) Cmd() string + func (m *MsgWelcomeGuard) Raw() []byte + type NoticeMsg struct + BusinessID string + Full struct{ ... } + Half struct{ ... } + ID int64 + LinkUrl string + MsgCommon string + MsgSelf string + MsgType int + Name string + RealRoomID int64 + RoomID int64 + Scatter struct{ ... } + ShieldUID int64 + Side struct{ ... } + type OnlineRankTop3 struct + DmScore int + List []struct{ ... } + type OnlineRankV2 struct + List []struct{ ... } + RankType string + type RoomBlockMsg struct + DmScore int + Operator int + UID int + Uname string + type RoomChange struct + AreaID int + AreaName string + LiveKey string + ParentAreaID int + ParentAreaName string + SubSessionKey string + Title string + type SendGift struct + Action string + BatchComboID string + BatchComboSend struct{ ... } + BeatID string + BizSource string + BlindGift interface{} + BroadcastID int64 + CoinType string + ComboResourcesID int64 + ComboSend struct{ ... } + ComboStayTime int64 + ComboTotalCoin int + CritProb int + Demarcation int + DiscountPrice int + Dmscore int + Draw int + Effect int + EffectBlock int + Face string + FloatScResourceID int64 + GiftID int64 + GiftName string + GiftType int + Gold int + GuardLevel int + IsFirst bool + IsSpecialBatch int + Magnification float64 + MedalInfo struct{ ... } + NameColor string + Num int + OriginalGiftName string + Price int + Rcost int + Remain int + Rnd string + SendMaster interface{} + Silver int + Super int + SuperBatchGiftNum int + SuperGiftNum int + SvgaBlock int + TID string + TagImage string + Timestamp int64 + TopList interface{} + TotalCoin int + UID int64 + Uname string + type SuperChatMessage struct + BackgroundBottomColor string + BackgroundColor string + BackgroundColorEnd string + BackgroundColorStart string + BackgroundIcon string + BackgroundImage string + BackgroundPriceColor string + ColorPoint float64 + DmScore int + EndTime int64 + Gift struct{ ... } + ID int64 + IsRanked int + IsSendAudit int + MedalInfo struct{ ... } + Message string + MessageFontColor string + MessageTrans string + Price int + Rate int + StartTime int64 + Time int64 + Token string + TransMark int + Ts int + UID int64 + UserInfo struct{ ... } + type SuperChatMessageJPN struct + BackgroundBottomColor string + BackgroundColor string + BackgroundIcon string + BackgroundImage string + BackgroundPriceColor string + EndTime int64 + Gift struct{ ... } + ID string + IsRanked int + MedalInfo struct{ ... } + Message string + MessageJpn string + Price int + Rate int + StartTime int64 + TS int64 + Time int64 + Token string + UID string + UserInfo struct{ ... } + type Transport struct + Error error + Msg Msg + type UserToastMsg struct + AnchorShow bool + Color string + DmScore int + EndTime int64 + GuardLevel int + IsShow int + Num int + OpType int + PayflowID string + Price int64 + RoleName string + StartTime int64 + SvgaBlock int + TargetGuardCount int + ToastMsg string + UID int64 + Unit string + UserShow bool + Username string + type VoiceJoinList struct + ApplyCount int + Category int + RedPoint int + Refresh int + RoomID int64 + type VoiceJoinRoomCountInfo struct + ApplyCount int + NotifyCount int + RedPoint int + RoomID int64 + RoomStatus int + RootStatus int