Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BetRadarLiveOdds ¶
type BetRadarLiveOdds struct { XMLName xml.Name `xml:"BetradarLiveOdds"` Status string `xml:"status,attr"` Timestamp int64 `xml:"timestamp,attr"` StartTime int64 `xml:"starttime,attr,omitempty"` EndTime int64 `xml:"endtime,attr,omitempty"` ReplyType string `xml:"replytype,attr,omitempty"` XMLNS string `xml:"xmlns,attr"` Matches []Match `xml:"Match"` OddsType []OddsType }
BetRadarLiveOdds is a Struct ready to XML Unmarshal a BetRadarLiveOdds XML message from BetRadar in play live XML Feeds. It can be used just as:
v := BetRadarLiveOdds{} xml_msg := `
<BetRadarLiveOdds status="alive" timestamp="1386870302430" xmlns="http://www.betradar.com/BetradarLiveOdds"> `
err := xml.Unmatshal([]byte(xml_data), &v)
if err != nil { fmt.Printf("error: %v", err) }
func (*BetRadarLiveOdds) Epoch ¶
func (t *BetRadarLiveOdds) Epoch() (epoch time.Time)
BetRadar does not follows the RFC3339 for Epoch Timestamps
type BookMakerStatus ¶
type Match ¶
type Match struct { Active bool `xml:"active,attr"` BetStatus string `xml:"betstatus,attr,omitempty"` MatchID uint32 `xml:"matchid,attr"` MatchTime uint8 `xml:"matchtime,attr,omitempty"` MsgNR uint16 `xml:"msgnr,attr,omitempty"` GameScore string `xml:"gamescore,attr,omitempty"` ClearedScore string `xml:"clearedscore,attr,omitempty"` Score string `xml:"score,attr,omitempty"` Status string `xml:"status,attr,omitempty"` SetScores string `xml:"setscores,attr,omitempty"` Odds []Odd Card []Card Scores []Score `xml:"Score"` MatchInfo MatchInfo `xml:"MatchInfo"` }
type Odd ¶
type Odd struct { OddsID uint32 `xml:"id,attr"` Active bool `xml:"active,attr"` Changed string `xml:"changed,attr"` Combination uint8 `xml:"combination,attr"` FreeText string `xml:"freetext,attr"` SpecialOddsValue string `xml:"specialoddsvalue,attr"` SubType uint16 `xml:"subtype,attr"` Type string `xml:"type,attr"` TypeID uint16 `xml:"typeid,attr"` OddsField []OddsField }
type OddsType ¶
type OddsType struct { Type string `xml:"type,attr"` FreeText string `xml:"freetext,attr,omitempty"` TypeID uint16 `xml:"typeid,attr"` OddsField []TranslationOddsField Name []Name }
type Tournament ¶
type TranslationOddsField ¶
Click to show internal directories.
Click to hide internal directories.