Versions in this module Expand all Collapse all v0 v0.2.2 Apr 1, 2024 v0.2.1 Feb 29, 2024 Changes in this version + const CmdLiveOpenPlatformDanmu + const CmdLiveOpenPlatformGuard + const CmdLiveOpenPlatformLike + const CmdLiveOpenPlatformSendGift + const CmdLiveOpenPlatformSuperChat + const CmdLiveOpenPlatformSuperChatDel + const CmdLiveRoomDanmu + const CmdLiveRoomLike + const CmdLiveRoomSendGift + const CmdLiveRoomSuperChat + const CmdLiveRoomSuperChatDel + const CmdLiveRoomSuperGuard + func AutomaticParsingMessageCommand(payload []byte) (string, interface{}, error) + type Cmd struct + Cmd string + Data interface{} + type CmdAuthData struct + Code int64 + func (arp CmdAuthData) Success() bool + type CmdDanmuData struct + DmType int + EmojiImgUrl string + FansMedalLevel int + FansMedalName string + FansMedalWearingStatus bool + GuardLevel int + Msg string + MsgID string + OpenID string + RoomID int + Timestamp int + UFace string + Uid int + Uname string + type CmdGuardData struct + FansMedalLevel int + FansMedalName string + FansMedalWearingStatus bool + GuardLevel int + GuardNum int + GuardUnit string + MsgID string + RoomID int + Timestamp int + UserInfo struct{ ... } + type CmdLikeData struct + FansMedalLevel int + FansMedalName string + FansMedalWearingStatus bool + LikeText string + MsgID string + OpenID string + RoomID int + Timestamp int + Uface string + Uid int + Uname string + type CmdSendGiftData struct + AnchorInfo struct{ ... } + ComboGift bool + ComboInfo struct{ ... } + FansMedalLevel int + FansMedalName string + FansMedalWearingStatus bool + GiftID int + GiftIcon string + GiftName string + GiftNum int + GuardLevel int + MsgID string + OpenID string + Paid bool + Price int + RoomID int + Timestamp int + Uface string + Uid int + Uname string + type CmdSuperChatData struct + EndTime int + FansMedalLevel int + FansMedalName string + FansMedalWearingStatus bool + GuardLevel int + Message string + MessageID int + MsgID string + OpenID string + Rmb int + RoomID int + StartTime int + Timestamp int + Uface string + Uid int + Uname string + type CmdSuperChatDelData struct + MessageIds []int + MsgID string + RoomID int v0.1.3 Feb 2, 2024 v0.1.2 Oct 14, 2023 Changes in this version + const BodyProtocolVersionNormal + const BodyProtocolVersionZlib + const HeaderDefaultOperation + const HeaderDefaultSequence + const HeaderDefaultVersion + const HeaderOffset + const OperationHeartbeat + const OperationHeartbeatReply + const OperationMessage + const OperationOffset + const OperationUserAuthentication + const OperationUserAuthenticationReply + const PackageHeaderTotalLength + const PackageOffset + const SequenceOffset + const VersionOffset + var PackLengthError = stderr.New("pack length error") + type Header struct + HeadLength uint16 + Operation uint32 + PackLength uint32 + Sequence uint32 + Version uint16 + func PackHeader(sequenceID, packLength, operation uint32) Header + func UnpackHeader(head []byte) (Header, error) + func (h Header) ToBytes() []byte + type Message struct + func PackMessage(sequenceID, operation uint32, raw []byte) Message + func UnpackMessage(raw []byte) ([]Message, error) + func (message Message) Operation() uint32 + func (message Message) Payload() []byte + func (message Message) ToBytes() []byte