Documentation ¶
Index ¶
- Constants
- func ClientSign(data string) string
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func GetTimestamp() string
- func Info(format string, v ...interface{})
- func InitConfig()
- func IntContain(array []int, val int) (index int)
- func LoadConfig(filePath string)
- func LoginBili()
- func Map2Params(params map[string]string) url.Values
- func Map2string(params map[string]string) string
- func PrintColor(format string, v ...interface{})
- func RandomString(length int) (sink string)
- func Signature(params *map[string]string)
- type Config
- type CoolDown
- type Endpoint
- type User
Constants ¶
View Source
const ( AppKey = "4409e2ce8ffd12b8" AppSec = "59b43e04ad6965f34319062b478f83dd" )
Variables ¶
This section is empty.
Functions ¶
func ClientSign ¶
func IntContain ¶
StringContains judge whether val exist in array
func Map2Params ¶
Map2String can transfer a string-string map into url value struct
func Map2string ¶
Map2String can transfer a string-string map into a raw string
func PrintColor ¶
func PrintColor(format string, v ...interface{})
func RandomString ¶
Types ¶
type Config ¶
type Config struct { UserList []User `yaml:"USERS"` Danmuku []string `yaml:"DANMU"` Endpoints []Endpoint `yaml:"PUSH"` CD CoolDown `yaml:"CD"` Cron string `yaml:"CRON"` }
var GlobalConfig Config
Click to show internal directories.
Click to hide internal directories.