cv

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 3 Imported by: 1

README


目录释义

目录 说明
./ 全局变常量
Const.go 全局常数
Var.go 全局变量

Documentation

Index

Constants

View Source
const (
	WS_OP_HEARTBEAT                  = 2
	WS_OP_HEARTBEAT_REPLY            = 3
	WS_OP_MESSAGE                    = 5
	WS_OP_USER_AUTHENTICATION        = 7
	WS_OP_CONNECT_SUCCESS            = 8
	WS_PACKAGE_HEADER_TOTAL_LENGTH   = 16
	WS_PACKAGE_OFFSET                = 0
	WS_HEADER_OFFSET                 = 4
	WS_VERSION_OFFSET                = 6
	WS_OPERATION_OFFSET              = 8
	WS_SEQUENCE_OFFSET               = 12
	WS_BODY_PROTOCOL_VERSION_NORMAL  = 0
	WS_BODY_PROTOCOL_VERSION_DEFLATE = 2
	WS_HEADER_DEFAULT_VERSION        = 1
	WS_HEADER_DEFAULT_OPERATION      = 1
	WS_HEADER_DEFAULT_SEQUENCE       = 1
	WS_AUTH_OK                       = 0
	WS_AUTH_TOKEN_ERROR              = -101
)

from source/player-loader-2.0.11.min.js

View Source
const (
	Protover = 2
	Platform = "web"
	Type     = 2
)

from player-loader-2.0.11.min.js

customAuthParam

Variables

View Source
var (
	Uid = 0 //client uid

	Live            []string //直播链接
	Live_qn         string
	Roomid          int
	Cookie          string
	Title           string    //直播标题
	Uname           string    //主播名
	Rev             float64   //营收
	Renqi           int       //人气
	GuardNum        int       //舰长数
	Note            string    //分区排行
	Live_Start_Time time.Time //直播开始时间
	Liveing         bool      //是否在直播
)
View Source
var Danmu_Main_mq = mq.New(10)
View Source
var Default_qn = map[string]string{
	"10000": "原画",
	"800":   "4K",
	"401":   "蓝光(杜比)",
	"400":   "蓝光",
	"250":   "超清",
	"150":   "高清",
	"80":    "流畅",
}
View Source
var Log = log.New(log.Config{
	File:   `danmu.log`,
	Stdout: true,
	Prefix_string: map[string]struct{}{
		`T: `: log.On,
		`I: `: log.On,
		`N: `: log.On,
		`E: `: log.On,
	},
})

日志

View Source
var (
	VERSION = "2.0.11"
)

from player-loader-2.0.11.min.js

customAuthParam

Functions

This section is empty.

Types

type Danmu_Main_mq_item

type Danmu_Main_mq_item struct {
	Class string
	Data  interface{}
}

消息队列

Jump to

Keyboard shortcuts

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