Documentation ¶
Index ¶
- Constants
- Variables
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func MustAsset(name string) []byte
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- func StartRun()
- type Conf
- type FlyDataRepository
- type LoopLoginSetting
- type RouterConfig
- type WsConn
Constants ¶
const ( TypeUriMOA = "MOA" TypeUriSGWin = "SGWIN" TypeUriSGWinCD = "SGWINCD" TypeUriIDC = "IDC" TypeUriJF = "JF" TypeUriPHX = "PHX" TypeUriALI = "ALI" TypeUriTY = "TY" )
const ( SoundDLu = "denglu.mp3" SoundDx = "diaoxian.mp3" SoundZhYc = "zhyc.mp3" SoundOrder = "prompt.mp3" )
Variables ¶
var ( Secret = "UAOKSPXI4JQ85P93G47FBL6Y2UX174KH" UserInfo = &model.Users{} FlySettingList = make([]*model.VFlyRoomSetting, 0) )
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type Conf ¶
type Conf struct { HostIndex int `comment:"飞单网站:测试=>1,远航=>0,必赢=>2"` SearchCode string `comment:"搜索码"` ServerAddr string `comment:"服务器地址,带端口"` LoopLogin LoopLoginSetting `json:"loop_login" comment:"飞单账号循环登录配置"` // contains filtered or unexported fields }
type FlyDataRepository ¶
type FlyDataRepository interface { //插入一条记录 //如果id 已存在,则返回错误 InsertOne() (err error) }
type LoopLoginSetting ¶
type LoopLoginSetting struct { IntervalSeconds int64 `comment:"循环间隔时长(秒)"` Cycles int `comment:"循环登录次数"` CyclesBet int `comment:"飞单失败后,循环飞单次数"` }
账号循环登录配置