Documentation
¶
Index ¶
- Constants
- type ComboSend
- type CommonNoticeDanmaku
- type Danmaku
- type Emoticon
- type Extra
- type Gift
- type GuardBuy
- type HotRankChanged
- type HotRankChangedV2
- type HotRankSettlement
- type HotRankSettlementV2
- type InteractWord
- type Live
- type LiveInteractiveGame
- type Medal
- type OnlineRankCount
- type Preparing
- type StopLiveRoomList
- type SuperChat
- type User
- type UserToast
- type WidgetBanner
Constants ¶
View Source
const ( TextDanmaku = iota EmoticonDanmaku )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComboSend ¶
type ComboSend struct {
Action string `json:"action"`
BatchComboId string `json:"batch_combo_id"`
BatchComboNum int `json:"batch_combo_num"`
ComboId string `json:"combo_id"`
ComboNum int `json:"combo_num"`
ComboTotalCoin int `json:"combo_total_coin"`
Dmscore int `json:"dmscore"`
GiftId int `json:"gift_id"`
GiftName string `json:"gift_name"`
GiftNum int `json:"gift_num"`
IsShow int `json:"is_show"`
MedalInfo struct {
AnchorRoomid int `json:"anchor_roomid"`
AnchorUname string `json:"anchor_uname"`
GuardLevel int `json:"guard_level"`
IconId int `json:"icon_id"`
IsLighted int `json:"is_lighted"`
MedalColor int `json:"medal_color"`
MedalColorBorder int `json:"medal_color_border"`
MedalColorEnd int `json:"medal_color_end"`
MedalColorStart int `json:"medal_color_start"`
MedalLevel int `json:"medal_level"`
MedalName string `json:"medal_name"`
Special string `json:"special"`
TargetId int `json:"target_id"`
} `json:"medal_info"`
NameColor string `json:"name_color"`
RUname string `json:"r_uname"`
Ruid int `json:"ruid"`
SendMaster interface{} `json:"send_master"`
TotalNum int `json:"total_num"`
Uid int `json:"uid"`
Uname string `json:"uname"`
}
type CommonNoticeDanmaku ¶
type Danmaku ¶
type Extra ¶
type Extra struct {
SendFromMe bool `json:"send_from_me"`
Mode int `json:"mode"`
Color int `json:"color"`
DmType int `json:"dm_type"`
FontSize int `json:"font_size"`
PlayerMode int `json:"player_mode"`
ShowPlayerType int `json:"show_player_type"`
Content string `json:"content"`
UserHash string `json:"user_hash"`
EmoticonUnique string `json:"emoticon_unique"`
Direction int `json:"direction"`
PkDirection int `json:"pk_direction"`
SpaceType string `json:"space_type"`
SpaceUrl string `json:"space_url"`
}
type Gift ¶
type Gift struct {
Action string `json:"action"`
BatchComboId string `json:"batch_combo_id"`
BatchComboSend interface{} `json:"batch_combo_send"`
BeatId string `json:"beatId"`
BizSource string `json:"biz_source"`
BlindGift interface{} `json:"blind_gift"`
BroadcastId int `json:"broadcast_id"`
CoinType string `json:"coin_type"`
ComboResourcesId int `json:"combo_resources_id"`
ComboSend interface{} `json:"combo_send"`
ComboStayTime int `json:"combo_stay_time"`
ComboTotalCoin int `json:"combo_total_coin"`
CritProb int `json:"crit_prob"`
Demarcation int `json:"demarcation"`
DiscountPrice int `json:"discount_price"`
Dmscore int `json:"dmscore"`
Draw int `json:"draw"`
Effect int `json:"effect"`
EffectBlock int `json:"effect_block"`
Face string `json:"face"`
FloatScResourceId int `json:"float_sc_resource_id"`
GiftId int `json:"giftId"`
GiftName string `json:"giftName"`
GiftType int `json:"giftType"`
Gold int `json:"gold"`
GuardLevel int `json:"guard_level"`
IsFirst bool `json:"is_first"`
IsSpecialBatch int `json:"is_special_batch"`
Magnification float64 `json:"magnification"`
MedalInfo struct {
AnchorRoomid int `json:"anchor_roomid"`
AnchorUname string `json:"anchor_uname"`
GuardLevel int `json:"guard_level"`
IconId int `json:"icon_id"`
IsLighted int `json:"is_lighted"`
MedalColor int `json:"medal_color"`
MedalColorBorder int `json:"medal_color_border"`
MedalColorEnd int `json:"medal_color_end"`
MedalColorStart int `json:"medal_color_start"`
MedalLevel int `json:"medal_level"`
MedalName string `json:"medal_name"`
Special string `json:"special"`
TargetId int `json:"target_id"`
} `json:"medal_info"`
NameColor string `json:"name_color"`
Num int `json:"num"`
OriginalGiftName string `json:"original_gift_name"`
Price int `json:"price"`
Rcost int `json:"rcost"`
Remain int `json:"remain"`
Rnd string `json:"rnd"`
SendMaster interface{} `json:"send_master"`
Silver int `json:"silver"`
Super int `json:"super"`
SuperBatchGiftNum int `json:"super_batch_gift_num"`
SuperGiftNum int `json:"super_gift_num"`
SvgaBlock int `json:"svga_block"`
TagImage string `json:"tag_image"`
Tid string `json:"tid"`
Timestamp int `json:"timestamp"`
TopList interface{} `json:"top_list"`
TotalCoin int `json:"total_coin"`
Uid int `json:"uid"`
Uname string `json:"uname"`
}
type GuardBuy ¶
type HotRankChanged ¶
type HotRankChanged struct {
Rank int `json:"rank"`
Trend int `json:"trend"`
Countdown int `json:"countdown"`
Timestamp int `json:"timestamp"`
WebUrl string `json:"web_url"`
LiveUrl string `json:"live_url"`
BlinkUrl string `json:"blink_url"`
LiveLinkUrl string `json:"live_link_url"`
PcLinkUrl string `json:"pc_link_url"`
Icon string `json:"icon"`
AreaName string `json:"area_name"`
RankDesc string `json:"rank_desc"`
}
type HotRankChangedV2 ¶
type HotRankChangedV2 HotRankChanged
type HotRankSettlement ¶
type HotRankSettlement struct {
AreaName string `json:"area_name"`
CacheKey string `json:"cache_key"`
DmMsg string `json:"dm_msg"`
Dmscore int `json:"dmscore"`
Face string `json:"face"`
Icon string `json:"icon"`
Rank int `json:"rank"`
Timestamp int `json:"timestamp"`
Uname string `json:"uname"`
Url string `json:"url"`
}
type HotRankSettlementV2 ¶
type InteractWord ¶
type InteractWord struct {
Contribution struct {
Grade int `json:"grade"`
} `json:"contribution"`
Dmscore int `json:"dmscore"`
FansMedal struct {
AnchorRoomid int `json:"anchor_roomid"`
GuardLevel int `json:"guard_level"`
IconId int `json:"icon_id"`
IsLighted int `json:"is_lighted"`
MedalColor int `json:"medal_color"`
MedalColorBorder int `json:"medal_color_border"`
MedalColorEnd int `json:"medal_color_end"`
MedalColorStart int `json:"medal_color_start"`
MedalLevel int `json:"medal_level"`
MedalName string `json:"medal_name"`
Score int `json:"score"`
Special string `json:"special"`
TargetId int `json:"target_id"`
} `json:"fans_medal"`
Identities []int `json:"identities"`
IsSpread int `json:"is_spread"`
MsgType int `json:"msg_type"`
Roomid int `json:"roomid"`
Score int64 `json:"score"`
SpreadDesc string `json:"spread_desc"`
SpreadInfo string `json:"spread_info"`
TailIcon int `json:"tail_icon"`
Timestamp int `json:"timestamp"`
TriggerTime int64 `json:"trigger_time"`
Uid int `json:"uid"`
Uname string `json:"uname"`
UnameColor string `json:"uname_color"`
}
type Live ¶
type Live struct {
Cmd string `json:"cmd"`
LiveKey string `json:"live_key"`
VoiceBackground string `json:"voice_background"`
SubSessionKey string `json:"sub_session_key"`
LivePlatform string `json:"live_platform"`
LiveModel int `json:"live_model"`
LiveTime int `json:"live_time"`
Roomid int `json:"roomid"`
}
type LiveInteractiveGame ¶
type LiveInteractiveGame struct {
Type int `json:"type"`
Uid int `json:"uid"`
Uname string `json:"uname"`
Uface string `json:"uface"`
GiftId int `json:"gift_id"`
GiftName string `json:"gift_name"`
GiftNum int `json:"gift_num"`
Price int `json:"price"`
Paid bool `json:"paid"`
Msg string `json:"msg"`
FansMedalLevel int `json:"fans_medal_level"`
GuardLevel int `json:"guard_level"`
Timestamp int `json:"timestamp"`
AnchorLottery interface{} `json:"anchor_lottery"`
PkInfo interface{} `json:"pk_info"`
AnchorInfo struct {
Uid int `json:"uid"`
Uname string `json:"uname"`
Uface string `json:"uface"`
} `json:"anchor_info"`
}
type OnlineRankCount ¶
type OnlineRankCount struct {
Count int `json:"count"`
}
type StopLiveRoomList ¶
type StopLiveRoomList struct {
RoomIdList []int `json:"room_id_list"`
}
type SuperChat ¶
type SuperChat struct {
BackgroundBottomColor string `json:"background_bottom_color"` //底部背景色
BackgroundColor string `json:"background_color"` //背景色
BackgroundColorEnd string `json:"background_color_end"`
BackgroundColorStart string `json:"background_color_start"`
BackgroundIcon string `json:"background_icon"` //背景图标
BackgroundImage string `json:"background_image"` //背景图
BackgroundPriceColor string `json:"background_price_color"` //背景价格颜色
ColorPoint float64 `json:"color_point"`
Dmscore int `json:"dmscore"`
EndTime int `json:"end_time"` //结束时间戳
Gift struct {
GiftId int `json:"gift_id"` //礼物ID
GiftName string `json:"gift_name"` //礼物名
Num int `json:"num"`
} `json:"gift"`
Id int `json:"id"`
IsRanked int `json:"is_ranked"`
IsSendAudit int `json:"is_send_audit"`
MedalInfo struct {
AnchorRoomid int `json:"anchor_roomid"`
AnchorUname string `json:"anchor_uname"`
GuardLevel int `json:"guard_level"` // 舰队等级,0:非舰队,1:总督,2:提督,3:舰长
IconId int `json:"icon_id"`
IsLighted int `json:"is_lighted"`
MedalColor string `json:"medal_color"`
MedalColorBorder int `json:"medal_color_border"`
MedalColorEnd int `json:"medal_color_end"`
MedalColorStart int `json:"medal_color_start"`
MedalLevel int `json:"medal_level"`
MedalName string `json:"medal_name"`
Special string `json:"special"`
TargetId int `json:"target_id"`
} `json:"medal_info"`
Message string `json:"message"` // 消息
MessageFontColor string `json:"message_font_color"`
MessageTrans string `json:"message_trans"`
Price int `json:"price"` // 价格(人民币)
Rate int `json:"rate"`
StartTime int `json:"start_time"` // 开始时间戳
Time int `json:"time"` //剩余时间
Token string `json:"token"`
TransMark int `json:"trans_mark"`
Ts int `json:"ts"`
Uid int `json:"uid"` //用户ID
UserInfo struct {
Face string `json:"face"` //用户头像URL
FaceFrame string `json:"face_frame"`
GuardLevel int `json:"guard_level"`
IsMainVip int `json:"is_main_vip"`
IsSvip int `json:"is_svip"`
IsVip int `json:"is_vip"`
LevelColor string `json:"level_color"`
Manager int `json:"manager"`
NameColor string `json:"name_color"`
Title string `json:"title"`
Uname string `json:"uname"` //用户名
UserLevel int `json:"user_level"` //用户等级
} `json:"user_info"`
}
SuperChat message_jpn: 消息日文翻译(目前只出现在SUPER_CHAT_MESSAGE_JPN) id_: str,消息ID,删除时用
type UserToast ¶
type UserToast struct {
AnchorShow bool `json:"anchor_show"`
Color string `json:"color"`
Dmscore int `json:"dmscore"`
EffectId int `json:"effect_id"`
EndTime int `json:"end_time"`
FaceEffectId int `json:"face_effect_id"`
GiftId int `json:"gift_id"`
GuardLevel int `json:"guard_level"`
IsShow int `json:"is_show"`
Num int `json:"num"`
OpType int `json:"op_type"`
PayflowId string `json:"payflow_id"`
Price int `json:"price"`
RoleName string `json:"role_name"`
RoomEffectId int `json:"room_effect_id"`
StartTime int `json:"start_time"`
SvgaBlock int `json:"svga_block"`
TargetGuardCount int `json:"target_guard_count"`
ToastMsg string `json:"toast_msg"`
Uid int `json:"uid"`
Unit string `json:"unit"`
UserShow bool `json:"user_show"`
Username string `json:"username"`
}
type WidgetBanner ¶
type WidgetBanner struct {
Timestamp int `json:"timestamp"`
WidgetList struct {
Field1 struct {
Id int `json:"id"`
Title string `json:"title"`
Cover string `json:"cover"`
WebCover string `json:"web_cover"`
TipText string `json:"tip_text"`
TipTextColor string `json:"tip_text_color"`
TipBottomColor string `json:"tip_bottom_color"`
JumpUrl string `json:"jump_url"`
Url string `json:"url"`
StayTime int `json:"stay_time"`
Site int `json:"site"`
PlatformIn []string `json:"platform_in"`
Type int `json:"type"`
BandId int `json:"band_id"`
SubKey string `json:"sub_key"`
SubData string `json:"sub_data"`
IsAdd bool `json:"is_add"`
} `json:"58"`
} `json:"widget_list"`
}
WidgetBanner TODO: widget_list的code不定
Click to show internal directories.
Click to hide internal directories.