F

package
v0.5.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2021 License: MIT Imports: 28 Imported by: 1

README


目录释义

目录 说明
./ 项目小工具
B_I.go 字节整数互转模块
F.go websocket消息生成与检查模块
cmd.go 命令行操作
api.go b站api获取模块
CookieCrypo.go cookie保存获取
xinxin.go 小心心加密模块(websocket<->js)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Btoi16

func Btoi16(b []byte, offset int) int16

func Btoi32

func Btoi32(b []byte, offset int) int32

func CheckSwitch_FansMedal added in v0.5.8

func CheckSwitch_FansMedal() (missKey []string)

func Close added in v0.5.8

func Close(uid uintptr)

func Cmd added in v0.5.8

func Cmd()

func CookieCheck added in v0.5.8

func CookieCheck(key []string) (missKey []string)

cookie检查

func CookieGet added in v0.5.8

func CookieGet() []byte

func CookieSet added in v0.5.8

func CookieSet(source []byte)

func Dosign added in v0.5.8

func Dosign()

签到

func F_x25Kn added in v0.5.8

func F_x25Kn()

func F_x25Kn_cancel added in v0.5.9

func F_x25Kn_cancel()

func Get added in v0.5.8

func Get(key string)

func GetHistory added in v0.5.9

func GetHistory(Roomid_int int) (j J.GetHistory)

func GetUid added in v0.5.8

func GetUid() (missKey []string)

func Get_HotRank added in v0.5.8

func Get_HotRank() (missKey []string)

func Get_LIVE_BUVID added in v0.5.8

func Get_LIVE_BUVID() (missKey []string)

LIVE_BUVID

func Get_cookie() (missKey []string)

扫码登录

func Get_cookie_by_msg()

短信登录

func Get_face_src

func Get_face_src(uid string) string

func Get_guardNum added in v0.5.8

func Get_guardNum() (missKey []string)

func HeadChe

func HeadChe(head []byte) header

func HeadGen

func HeadGen(datalenght, Opeation, Sequence int) []byte

头部生成与检查

func Heartbeat

func Heartbeat() ([]byte, int)

获取人气生成

func HelloChe

func HelloChe(r []byte) bool

func HelloGen

func HelloGen(roomid int, key string) []byte

认证生成与检查

func Html added in v0.5.8

func Html() (missKey []string)

func Info added in v0.5.8

func Info(UpUid int) (info J.Info)

func IsConnected added in v0.5.9

func IsConnected() bool

func Itob16

func Itob16(num int16) []byte

func Itob32

func Itob32(num int32) []byte

整数 字节转换区 32 4字节 16 2字节

func KeepConnect added in v0.5.9

func KeepConnect() (o bool)

func Silver_2_coin added in v0.5.8

func Silver_2_coin() (missKey []string)

银瓜子2硬币

func Wasm added in v0.5.8

func Wasm(uid uintptr, s RT) (o string)

Types

type E_json added in v0.5.8

type E_json struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Ttl     int    `json:"ttl"`
	Data    struct {
		Timestamp          int    `json:"timestamp"`
		Heartbeat_interval int    `json:"heartbeat_interval"`
		Secret_key         string `json:"secret_key"`
		Secret_rule        []int  `json:"secret_rule"`
		Patch_status       int    `json:"patch_status"`
	} `json:"data"`
}

小心心

type Gift_list_type added in v0.5.8

type Gift_list_type struct {
	Code    int                 `json:"code"`
	Message string              `json:"message"`
	Data    Gift_list_type_Data `json:"data"`
}

礼物列表

type Gift_list_type_Data added in v0.5.8

type Gift_list_type_Data struct {
	List []Gift_list_type_Data_List `json:"list"`
}

type Gift_list_type_Data_List added in v0.5.8

type Gift_list_type_Data_List struct {
	Bag_id    int    `json:"bag_id"`
	Gift_id   int    `json:"gift_id"`
	Gift_name string `json:"gift_name"`
	Gift_num  int    `json:"gift_num"`
	Expire_at int    `json:"expire_at"`
}

func Gift_list added in v0.5.8

func Gift_list() (list []Gift_list_type_Data_List)

type R added in v0.5.8

type R struct {
	Id        string `json:"id"`
	Device    string `json:"device"`
	Ets       int    `json:"ets"`
	Benchmark string `json:"benchmark"`
	Time      int    `json:"time"`
	Ts        int    `json:"ts"`
	Ua        string `json:"ua"`
}

需要加密的数据

type RT added in v0.5.8

type RT struct {
	R R     `json:"r"`
	T []int `json:"t"` //加密方法
}

发送的原始对象

type Roominfo added in v0.5.8

type Roominfo struct {
	Room_id int `json:"room_id"`
}

type S added in v0.5.8

type S struct {
	Id string `json:"id"` //发送的数据中的Id项,以确保是对应的返回
	S  string `json:"s"`  //加密字符串
}

返回的加密对象

type TGet_list_in_room added in v0.5.8

type TGet_list_in_room struct {
	Medal_id       int    `json:"medal_id"`       //牌子id
	Medal_name     string `json:"medal_name"`     //牌子名
	Target_id      int    `json:"target_id"`      //牌子up主uid
	Target_name    string `json:"target_name"`    //牌子up主名
	Room_id        int    `json:"roomid"`         //牌子直播间
	Last_wear_time int    `json:"last_wear_time"` //佩戴有效截止时间(佩戴本身不会刷新,发弹幕,送小心心,送金瓜子礼物才会刷新)
	Today_intimacy int    `json:"today_intimacy"` //今日亲密(0:未发送弹幕 100:已发送弹幕)
	Is_lighted     int    `json:"is_lighted"`     //牌子是否熄灭(0:熄灭 1:亮)
}

牌子

func Get_list_in_room added in v0.5.8

func Get_list_in_room() (array []TGet_list_in_room)

获取牌子信息

type TGet_weared_medal added in v0.5.8

type TGet_weared_medal struct {
	Medal_id       int      `json:"medal_id"`       //牌子id
	Medal_name     string   `json:"medal_name"`     //牌子名
	Target_id      int      `json:"target_id"`      //牌子up主uid
	Target_name    string   `json:"target_name"`    //牌子up主名
	Roominfo       Roominfo `json:"roominfo"`       //牌子直播间
	Today_intimacy int      `json:"today_intimacy"` //今日亲密(0:未发送弹幕 100:已发送弹幕)
	Is_lighted     int      `json:"is_lighted"`     //牌子是否熄灭(0:熄灭 1:亮)
}

func Get_weared_medal added in v0.5.8

func Get_weared_medal() (item TGet_weared_medal)

获取当前佩戴的牌子

type UpItem added in v0.5.8

type UpItem struct {
	Uname  string `json:"uname"`
	Title  string `json:"title"`
	Roomid int    `json:"roomid"`
}

正在直播主播

func Feed_list added in v0.5.8

func Feed_list() (Uplist []UpItem)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL