Versions in this module Expand all Collapse all v0 v0.2.2 Apr 16, 2021 v0.2.1 Aug 19, 2020 Changes in this version + const InvalidName + const NoURN + func CurrentTimestamp() int + func Hash(s string) int + func UIDWithLang(id int, lang Lang) int + type APIError struct + Inner error + Response string + StatusCode int + URL string + func (e APIError) Error() string + func (e APIError) Unwrap() error + type Alive struct + Producer Producer + Subscribed int + Timestamp int + type BetCancel struct + EndTime *int + EventID int + EventURN URN + Markets []BetCancelMarket + Producer Producer + RequestID *int + StartTime *int + SupercededBy *string + Timestamp int + func (t *BetCancel) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type BetCancelMarket struct + ID int + LineID int + VoidReason *int + func (t *BetCancelMarket) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type BetSettlement struct + Certainty *int8 + EventID int + EventURN URN + Markets []BetSettlementMarket + Producer Producer + RequestID *int + Timestamp int + func (t *BetSettlement) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type BetSettlementMarket struct + ID int + LineID int + Outcomes []BetSettlementOutcome + Result *string + Specifiers map[string]string + VoidReason *int + func (t *BetSettlementMarket) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type BetSettlementOutcome struct + DeadHeatFactor float64 + ID int + PlayerID int + Result OutcomeResult + func (t *BetSettlementOutcome) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type BetStop struct + EventID int + EventURN URN + Groups []string + MarketIDs []int + Producer Producer + RequestID *int + Status MarketStatus + Timestamp int + func (t *BetStop) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Body struct + Alive *Alive + BetCancel *BetCancel + BetSettlement *BetSettlement + BetStop *BetStop + Competitor *CompetitorPlayer + Connection *Connection + Fixture *Fixture + FixtureChange *FixtureChange + Markets MarketDescriptions + OddsChange *OddsChange + Player *Player + Producers ProducersChange + RollbackBetCancel *RollbackBetCancel + RollbackBetSettlement *RollbackBetSettlement + SnapshotComplete *SnapshotComplete + SummaryEventStatus *SummaryEventStatus + Tournament *FixtureTournament + type CashoutStatus int8 + const CashoutStatusAvailable + const CashoutStatusClosed + const CashoutStatusUnavailable + func (s *CashoutStatus) PtrVal() *int8 + type Category struct + CountryCode string + ID int + Name string + func (t *Category) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Clock struct + MatchTime *ClockTime + RemainingTime *ClockTime + RemainingTimeInPeriod *ClockTime + StoppageTime *ClockTime + StoppageTimeAnnounced *ClockTime + Stopped *bool + type ClockTime string + func (c *ClockTime) Minute() string + func (c *ClockTime) PtrVal() *string + func (c *ClockTime) String() string + type Competitor struct + Abbreviation string + Country string + CountryCode string + ID int + Name string + Players []CompetitorPlayer + Qualifier string + Virtual bool + func (t *Competitor) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type CompetitorPlayer struct + Abbreviation string + ID int + Name string + Nationality string + func (t *CompetitorPlayer) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type CompetitorProfile struct + Competitor CompetitorPlayer + GeneratedAt time.Time + type Connection struct + Status ConnectionStatus + Timestamp int + type ConnectionStatus int8 + const ConnectionStatusDown + const ConnectionStatusUp + func (cs ConnectionStatus) String() string + type Environment int8 + const Production + const Replay + const Staging + type Error struct + Inner error + Op string + Severity ErrorSeverity + func E(op string, inner error) Error + func Notice(op string, inner error) Error + func (e Error) Error() string + func (e Error) Unwrap() error + type ErrorSeverity int8 + const LogSeverity + const NoticeSeverity + type EventReporting int8 + const EventReportingActive + const EventReportingNotAvailable + const EventReportingSuspended + type EventStatus int8 + const EventStatusAbandoned + const EventStatusCancelled + const EventStatusClosed + const EventStatusDelayed + const EventStatusEnded + const EventStatusInterrupted + const EventStatusLive + const EventStatusNotStarted + const EventStatusPostponed + const EventStatusSuspended + func (s *EventStatus) PtrVal() *int8 + func (s EventStatus) Val() int8 + type ExtraInfo struct + Key string + Value string + type Fixture struct + Away Competitor + Category Category + Competitors []Competitor + ExtraInfo []ExtraInfo + Home Competitor + ID int + Liveodds string + Name string + NextLiveTime time.Time + ProductInfo ProductInfo + Races []SportEvent + ReplacedBy string + Round Round + Scheduled time.Time + ScheduledEnd time.Time + Season Season + Sport Sport + StartTime time.Time + StartTimeConfirmed bool + StartTimeTbd bool + Status string + Tournament Tournament + TvChannels []TvChannel + Type string + URN URN + Venue Venue + func (f *Fixture) PP() string + func (f *Fixture) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type FixtureChange struct + ChangeType *FixtureChangeType + EventID int + EventURN URN + NextLiveTime *int + Producer Producer + RequestID *int + StartTime *int + Timestamp int + func (fc *FixtureChange) Schedule() *time.Time + func (fc *FixtureChange) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type FixtureChangeType int8 + const FixtureChangeTypeCancelled + const FixtureChangeTypeCoverage + const FixtureChangeTypeFromat + const FixtureChangeTypeNew + const FixtureChangeTypeTime + type FixtureRsp struct + Fixture Fixture + GeneratedAt time.Time + type FixtureTournament struct + Category Category + Groups []Group + ID int + Name string + Season Season + Sport Sport + Tournament Tournament + URN URN + func (t *FixtureTournament) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Gender int8 + const Female + const GenderUnknown + const Male + type Group struct + Competitors []Competitor + Name string + type Header struct + EventID int + EventURN URN + Lang Lang + Priority MessagePriority + Producer Producer + ReceivedAt int + RequestedAt int + Scope MessageScope + SportID int + Timestamp int + Type MessageType + type Lang int8 + const LangAA + const LangAZE + const LangBG + const LangBR + const LangBS + const LangCZ + const LangDA + const LangDE + const LangEL + const LangEN + const LangES + const LangET + const LangFI + const LangFR + const LangHEB + const LangHR + const LangHU + const LangID + const LangIT + const LangJA + const LangKA + const LangKAZ + const LangKO + const LangLT + const LangLV + const LangML + const LangNL + const LangNO + const LangNone + const LangPL + const LangPT + const LangRO + const LangRU + const LangSE + const LangSK + const LangSL + const LangSQI + const LangSR + const LangSRL + const LangTH + const LangTR + const LangUKR + const LangVI + const LangZH + const LangZHT + func Languages(codes string) []Lang + func (l *Lang) Parse(code string) + func (l Lang) Code() string + func (l Lang) Name() string + func (l Lang) String() string + type Market struct + CashoutStatus *CashoutStatus + Favourite *bool + ID int + LineID int + NextBetstop *int + Outcomes []Outcome + Specifiers map[string]string + Status MarketStatus + func (m *Market) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (m Market) VariantSpecifier() string + type MarketAttribute struct + Description string + Name string + type MarketDescription struct + Attributes []MarketAttribute + Description string + Groups []string + ID int + IncludesOutcomesOfType string + Name string + OutcomeType OutcomeType + Outcomes []MarketOutcome + Specifiers []MarketSpecifier + Variant string + VariantID int + func (t *MarketDescription) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type MarketDescriptions []MarketDescription + func (md MarketDescriptions) Find(id int) *MarketDescription + func (md MarketDescriptions) Groups() map[string][]int + type MarketMetadata struct + NextBetstop *int + type MarketOutcome struct + Description string + ID int + Name string + func (t *MarketOutcome) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type MarketSpecifier struct + Description string + Name string + Type SpecifierType + func (t *MarketSpecifier) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type MarketStatus int8 + const MarketStatusActive + const MarketStatusCancelled + const MarketStatusHandedOver + const MarketStatusInactive + const MarketStatusSettled + const MarketStatusSuspended + func (m *MarketStatus) PtrVal() *int8 + func (m MarketStatus) Val() int8 + type MarketsRsp struct + Markets MarketDescriptions + type Message struct + Raw []byte + func NewAPIMessage(lang Lang, typ MessageType, body []byte) (*Message, error) + func NewCompetitorMessage(lang Lang, competitor *CompetitorPlayer, requestedAt int) *Message + func NewConnnectionMessage(status ConnectionStatus) *Message + func NewFixtureMessage(lang Lang, x Fixture, requestedAt int) *Message + func NewMarketsMessage(lang Lang, ms MarketDescriptions, requestedAt int) *Message + func NewPlayerMessage(lang Lang, player *Player, requestedAt int) *Message + func NewProducersChangeMessage(pc ProducersChange) *Message + func NewQueueMessage(routingKey string, body []byte) (*Message, error) + func NewSummaryMessage(lang Lang, s Summary, requestedAt int) *Message + func NewTournamentMessage(lang Lang, x FixtureTournament, requestedAt int) *Message + func (m *Message) Is(mt MessageType) bool + func (m *Message) NewFixtureMessage(lang Lang, f Fixture) *Message + func (m *Message) UID() int + func (m *Message) Unmarshal(buf []byte) error + func (m Message) Marshal() []byte + func (m Message) MarshalPretty() []byte + type MessageKind int8 + const MessageKindEvent + const MessageKindLexicon + const MessageKindSystem + type MessagePriority int8 + const MessagePriorityHigh + const MessagePriorityLow + func (p *MessagePriority) Parse(priority string) + type MessageScope int8 + const MessageScopeLive + const MessageScopePrematch + const MessageScopePrematchAndLive + const MessageScopeSystem + const MessageScopeVirtuals + func (s *MessageScope) Parse(prematchInterest, liveInterest string) + type MessageType int8 + const MessageTypeAlive + const MessageTypeBetCancel + const MessageTypeBetSettlement + const MessageTypeBetStop + const MessageTypeCompetitor + const MessageTypeConnection + const MessageTypeFixture + const MessageTypeFixtureChange + const MessageTypeMarkets + const MessageTypeOddsChange + const MessageTypePlayer + const MessageTypeProducersChange + const MessageTypeRollbackBetCancel + const MessageTypeRollbackBetSettlement + const MessageTypeSnapshotComplete + const MessageTypeSummary + const MessageTypeTournament + const MessageTypeUnknown + func (m *MessageType) Parse(name string) + func (m MessageType) Kind() MessageKind + func (m MessageType) String() string + type OddsChange struct + BetstopReason *int + BettingStatus *int + EventID int + EventStatus *SportEventStatus + EventURN URN + Markets []Market + OddsChangeReason *int + OddsGenerationProperties *OddsGenerationProperties + Producer Producer + RequestID *int + Timestamp int + func (o *OddsChange) Competitors() []int + func (o *OddsChange) EachCompetitor(handler func(int)) + func (o *OddsChange) EachPlayer(handler func(int)) + func (o *OddsChange) EachVariantMarket(handler func(int, string)) + func (o *OddsChange) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type OddsGenerationProperties struct + ExpectedSupremacy *float64 + ExpectedTotals *float64 + type Outcome struct + Active *bool + Competitors []int + ID int + Odds *float64 + PlayerID int + Probabilities *float64 + Team *Team + func (t *Outcome) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type OutcomeResult int8 + const OutcomeResultHalfLose + const OutcomeResultHalfWin + const OutcomeResultLose + const OutcomeResultUnknown + const OutcomeResultVoid + const OutcomeResultWin + const OutcomeResultWinWithDeadHead + type OutcomeType int8 + const OutcomeTypeCompetitor + const OutcomeTypeCompetitors + const OutcomeTypeDefault + const OutcomeTypeFreeText + const OutcomeTypePlayer + const OutcomeTypeUnknown + type PeriodScore struct + AwayScore *int + HomeScore *int + MatchStatusCode *int + Number *int + type Player struct + CountryCode string + DateOfBirth time.Time + FullName string + Gender Gender + Height int + ID int + JerseyNumber int + Name string + Nationality string + Nickname string + Type string + Weight int + func (t *Player) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type PlayerProfile struct + GeneratedAt time.Time + Player Player + type Producer int8 + const ProducerDefault + const ProducerLiveOdds + const ProducerPrematch + const ProducerUnknown + func VirtualProducers() []Producer + func (p Producer) Code() string + func (p Producer) Description() string + func (p Producer) Name() string + func (p Producer) Prematch() bool + func (p Producer) RecoveryWindow() int + func (p Producer) Scope() string + func (p Producer) Sports() bool + func (p Producer) String() string + func (p Producer) Virtuals() bool + type ProducerChange struct + Producer Producer + RecoveryID int + Status ProducerStatus + Timestamp int + type ProducerStatus int8 + const ProducerStatusActive + const ProducerStatusDown + const ProducerStatusInRecovery + type ProducersChange []ProducerChange + func (p *ProducersChange) Add(producer Producer, timestamp int) + func (p *ProducersChange) AddAll(producers []Producer, timestamp int) + type ProductInfo struct + IsAutoTraded string + IsInHostedStatistics string + IsInLiveCenterSoccer string + IsInLiveScore string + Links []ProductInfoLink + Streaming []StreamingChannel + type ProductInfoLink struct + Name string + Ref string + type Result struct + AwayScore *int + HomeScore *int + MatchStatusCode *int + type RollbackBetCancel struct + EndTime *int + EventID int + EventURN URN + Markets []BetCancelMarket + Producer Producer + RequestID *int + StartTime *int + Timestamp int + func (t *RollbackBetCancel) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type RollbackBetSettlement struct + EventID int + EventURN URN + Markets []BetCancelMarket + Producer Producer + RequestID *int + Timestamp int + func (t *RollbackBetSettlement) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Round struct + CupRoundMatchNumber int + CupRoundMatches int + Group string + GroupID string + GroupLongName string + ID int + Name string + Number int + OtherMatchID string + Type string + type Season struct + EndDate string + EndTime string + ID int + Name string + StartDate string + StartTime string + Year string + func (t *Season) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type SnapshotComplete struct + Producer Producer + RequestID int + Timestamp int + type SpecifierType int8 + const SpecifierTypeDecimal + const SpecifierTypeInteger + const SpecifierTypeString + const SpecifierTypeUnknown + const SpecifierTypeVariableText + type Sport struct + ID int + Name string + func (t *Sport) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type SportEvent struct + ID string + Name string + Scheduled time.Time + ScheduledEnd time.Time + Type string + type SportEventStatus struct + AwayBatter *int + AwayDismissals *int + AwayGamescore *int + AwayLegscore *int + AwayPenaltyRuns *int + AwayPenaltyScore *int + AwayRemainingBowls *int + AwayScore *int + AwaySuspend *int + Balls *int + Bases *string + Clock *Clock + CurrentCtTeam *Team + CurrentEnd *int + CurrentServer *Team + Delivery *int + ExpediteMode *bool + HomeBatter *int + HomeDismissals *int + HomeGamescore *int + HomeLegscore *int + HomePenaltyRuns *int + HomePenaltyScore *int + HomeRemainingBowls *int + HomeScore *int + HomeSuspend *int + Innings *int + MatchStatus *int + Outs *int + Over *int + PeriodScores []PeriodScore + Position *int + Possession *int + RemainingReds *int + Reporting *EventReporting + Results []Result + Statistics *Statistics + Status EventStatus + Strikes *int + Throw *int + Tiebreak *bool + Try *int + Visit *int + Yards *int + type Statistics struct + Corners *StatisticsScore + RedCards *StatisticsScore + YellowCards *StatisticsScore + YellowRedCards *StatisticsScore + type StatisticsScore struct + Away int + Home int + type StreamingChannel struct + ID int + Name string + type Summary struct + GeneratedAt time.Time + SportEvent Fixture + SummaryEventStatus *SummaryEventStatus + type SummaryEventStatus struct + AwayScore *int + HomeScore *int + MatchStatus string + PeriodScores []PeriodScore + Status string + type Team int8 + const TeamAway + const TeamHome + func (t *Team) PtrVal() *int8 + type Tournament struct + ID int + Name string + type TvChannel struct + Name string + type URN string + func NewEventURN(eventID int) URN + func (u *URN) Parse(s string) + func (u URN) Empty() bool + func (u URN) EventID() int + func (u URN) ID() int + func (u URN) IsTournament() bool + func (u URN) Producer() Producer + func (u URN) String() string + type Venue struct + Capacity int + CityName string + CountryCode string + CountryName string + ID int + MapCoordinates string + Name string + func (t *Venue) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error