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
- type Login
- type OrderProcessor
- type Pk10OrderInfo
- type Pk10OrderStructure
- type UserAccountProcessor
- type UserInfo
Constants ¶
const ( OrderPathFormat = "game/orderServlet?TRACK_TYPE=&oper_type=ORDER%s" OrderInfoFormat = "&game_type=%s&issue_id=%s&order_info=%s" //OddsCateMapFormat 当前期彩种赔率表;需要传一个用户盘口信息(ABC) OddsCateMapFormat = "game/get_rate_data.do" )
Variables ¶
var ( ErrCap = errors.New("验证码不正确") ErrInvalidUser = errors.New("用户名或密码不正确") ErrNeedUpdatePassword = errors.New("账户需要更新密码") ErrCookie = errors.New("登录信息失效") )
var (
ErrGetOdds = errors.New("从目标网址抓取赔率信息失败,可能已封盘")
)
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 Login ¶
type Login struct { //CookieJar 保持cookie唯一 CookieJar http.CookieJar HostIndex string UserId string RawPassword string Attach string Content string SrcMember string UserInfo UserAccount UserAccountProcessor `json:"-"` WsInstance model.WsProcess // contains filtered or unexported fields }
func (*Login) OrderAction ¶
func (l *Login) OrderAction(orderBean *model.FlySplitRecords) (err error)
func (*Login) SetWebSocket ¶
type OrderProcessor ¶
type Pk10OrderInfo ¶
type Pk10OrderStructure ¶
type Pk10OrderStructure struct { *Login OrderObj OrderProcessor GameType string Issue string Gid int64 RateRawStr string OrderQueryStr string }
func (*Pk10OrderStructure) GetRateData ¶
func (od *Pk10OrderStructure) GetRateData() error
GetRateData 获取原始赔率字符串
func (*Pk10OrderStructure) OrderSsc ¶
func (od *Pk10OrderStructure) OrderSsc() (err error)
func (*Pk10OrderStructure) ParseObjSsc ¶
func (od *Pk10OrderStructure) ParseObjSsc() (err error)