pkg

package
v0.0.0-...-28fce05 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.27 Safari/537.36"

Variables

Functions

func AddSpace

func AddSpace(s string) string

func GetByte

func GetByte(url string) ([]byte, error)

func NewDoc

func NewDoc(url string) (*goquery.Document, error)

Types

type Issue

type Issue struct {
	C string   `json:"c"`
	L []string `json:"l"`
}

type Match

type Match struct {
	AwayTeam       string `json:"AwayTeam"`             // 布莱顿
	DisableFlag    int64  `json:"DisableFlag,string"`   // 0
	HomeTeam       string `json:"HomeTeam"`             // 托特纳姆热刺
	Issue          string `json:"Issue"`                // 2019056
	ItemID         int64  `json:"ItemID,string"`        // 1
	LeagueColor    string `json:"LeagueColor"`          // FF3333
	LeagueID       int64  `json:"LeagueID,string"`      // 36
	LeagueName     string `json:"LeagueName"`           // 英超
	LeagueSimpName string `json:"LeagueSimpName"`       // 英超
	LotEndTime     string `json:"LotEndTime"`           // 2019-04-23 22:30:00
	LotLose        int64  `json:"LotLose,string"`       // 0
	MatchID        int64  `json:"MatchID,string"`       // 1552470
	MatchState     int64  `json:"MatchState,string"`    // 0
	MatchTime      string `json:"MatchTime"`            // 2019-04-24 02:45:00
	VsReverseFlag  int64  `json:"VsReverseFlag,string"` // 0
}

type OuPei

type OuPei map[int64]*OuPeiItem

type OuPeiItem

type OuPeiItem struct {
	FirstOdds0 float64 `json:"FirstOdds0,string"` // 3.29
	FirstOdds1 float64 `json:"FirstOdds1,string"` // 3.47
	FirstOdds3 float64 `json:"FirstOdds3,string"` // 2.06
	LastOdds0  float64 `json:"LastOdds0,string"`  // 3.04
	LastOdds1  float64 `json:"LastOdds1,string"`  // 3.57
	LastOdds3  float64 `json:"LastOdds3,string"`  // 2.16
	MatchID    int64   `json:"MatchID,string"`    // 1399706
	Odds0Trend float64 `json:"Odds0Trend,string"` // -1.00
	Odds1Trend float64 `json:"Odds1Trend,string"` // -1.00
	Odds3Trend float64 `json:"Odds3Trend,string"` // 1.00
}

type QkjInfo

type QkjInfo struct {
	Issue  string     `json:"Issue"`
	Code   string     `json:"Code"`
	Date   string     `json:"Date"`
	Pool   string     `json:"Pool"`
	Sales  string     `json:"Sales"`
	Level1 string     `json:"Level1"`
	Level2 string     `json:"Level2"`
	Level3 string     `json:"Level3"`
	Level  [][]string `json:"Level,omitempty"`
}

type UserAgentTransport

type UserAgentTransport struct {
	// contains filtered or unexported fields
}

func (UserAgentTransport) RoundTrip

func (uat UserAgentTransport) RoundTrip(r *http.Request) (*http.Response, error)

type ZcMatch

type ZcMatch struct {
	Endtime string   `json:"endtime"` // 1899-12-29 23:45:00
	Issue   string   `json:"string"`  // 2019056
	Match   []*Match `json:"match"`
	State   int64    `json:"state,string"` // -1
}

Directories

Path Synopsis
wbw
jqc
sfc

Jump to

Keyboard shortcuts

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