Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnchorInfo ¶
type Cmd ¶
type Cmd[T any] struct { Cmd CmdType `json:"cmd"` Data T `json:"data"` Info json.RawMessage `json:"info"` }
type CmdType ¶
type CmdType string
const ( CmdDanmu CmdType = "LIVE_OPEN_PLATFORM_DM" // 获取弹幕信息 CmdGift CmdType = "LIVE_OPEN_PLATFORM_SEND_GIFT" // 获取礼物信息 CmdSuperChat CmdType = "LIVE_OPEN_PLATFORM_SUPER_CHAT" // 获取付费留言 CmdDelSuperChat CmdType = "LIVE_OPEN_PLATFORM_SUPER_CHAT_DEL" // 付费留言下线 CmdGuard CmdType = "LIVE_OPEN_PLATFORM_GUARD" // 付费大航海 CmdLike CmdType = "LIVE_OPEN_PLATFORM_LIKE" // 点赞信息 CmdEnd CmdType = "LIVE_OPEN_PLATFORM_INTERACTION_END" // 消息推送结束通知 )
type DelSuperChat ¶
type Guard ¶
type Guard struct { MsgBase UserInfo AnchorInfo `json:"user_info"` // 用户信息 GuardInfo FansMedal }
type GuardInfo ¶
type GuardInfo struct { Level GuardLevel `json:"guard_level"` // 大航海等级 Num int64 `json:"guard_num"` // 大航海数量 Unit string `json:"guard_unit"` // 大航海单位 Price int64 `json:"price"` // 大航海金瓜子 }
type GuardLevel ¶
type GuardLevel int64
const ( GuardLv1 GuardLevel = 1 + iota // 1: 总督 GuardLv2 // 2: 提督 GuardLv3 // 3: 舰长 )
func (GuardLevel) String ¶ added in v0.0.10
func (lv GuardLevel) String() string
type Like ¶
type Like struct { MsgBase // 文档上没写有 msg_id AnchorInfo LikeText string `json:"like_text"` // 点赞文案( “xxx点赞了”) LikeCount string `json:"like_count"` // 对单个用户最近2秒的点赞次数聚合 FansMedal }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.