common

package
v0.0.0-...-702d5d8 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommentPenaltyShootout = "Penalty Shootout"
	CommentFoul            = "Foul"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType string
const (
	Goal         EventType = "Goal"
	Card         EventType = "Card"
	Substitution EventType = "subst"
	Var          EventType = "Var"
)

type EventTypeDetails

type EventTypeDetails string
const (
	GoalNormal        EventTypeDetails = "Normal Goal"
	GoalOwn           EventTypeDetails = "Own Goal"
	GoalPenalty       EventTypeDetails = "Penalty"
	GoalPenaltyMissed EventTypeDetails = "Missed Penalty"

	YellowCard EventTypeDetails = "Yellow Card"
	RedCard    EventTypeDetails = "Red Card"

	Substitution1 EventTypeDetails = "Substitution 1"
	Substitution2 EventTypeDetails = "Substitution 2"
	Substitution3 EventTypeDetails = "Substitution 3"
	Substitution4 EventTypeDetails = "Substitution 4"
	Substitution5 EventTypeDetails = "Substitution 5"
	Substitution6 EventTypeDetails = "Substitution 6"

	VarGoalCancelled    EventTypeDetails = "Goal cancelled"
	VarPenaltyConfirmed EventTypeDetails = "Penalty confirmed"
)

type FixtureStatus

type FixtureStatus string
const (
	TimeToBeDefined      FixtureStatus = "TBD"
	NotStarted           FixtureStatus = "NS"
	FirstHalf            FixtureStatus = "1H"
	Halftime             FixtureStatus = "HT"
	SecondHalf           FixtureStatus = "2H"
	ExtraTime            FixtureStatus = "ET"
	BreakTime            FixtureStatus = "BT"
	Penalty              FixtureStatus = "P"
	Suspended            FixtureStatus = "SUSP"
	Interrupted          FixtureStatus = "INT"
	Finished             FixtureStatus = "FT"
	FinishedAfterExtra   FixtureStatus = "AET"
	FinishedAfterPenalty FixtureStatus = "PEN"
	Postponed            FixtureStatus = "PST"
	Cancelled            FixtureStatus = "CANC"
	Abandoned            FixtureStatus = "ABD"
	TechnicalLoss        FixtureStatus = "AWD"
	WalkOver             FixtureStatus = "WO"
	InProgress           FixtureStatus = "LIVE"
)

func (FixtureStatus) IsFinished

func (fs FixtureStatus) IsFinished() bool

func (FixtureStatus) IsInFuture

func (fs FixtureStatus) IsInFuture() bool

func (FixtureStatus) IsLive

func (fs FixtureStatus) IsLive() bool

type StatsType

type StatsType string
const (
	ShotsOnGoal      StatsType = "Shots on Goal"
	ShotsOffGoal     StatsType = "Shots off Goal"
	ShotsInsideBox   StatsType = "Shots insidebox"
	ShotsOutsideBox  StatsType = "Shots outsidebox"
	TotalShots       StatsType = "Total Shots"
	BlockedShots     StatsType = "Blocked Shots"
	Fouls            StatsType = "Fouls"
	CornerKicks      StatsType = "Corner Kicks"
	Offsides         StatsType = "Offsides"
	BallPossession   StatsType = "Ball Possession"
	YellowCards      StatsType = "Yellow Cards"
	RedCards         StatsType = "Red Cards"
	GoalkeeperSaves  StatsType = "Goalkeeper Saves"
	TotalPasses      StatsType = "Total passes"
	PassesAccurate   StatsType = "Passes accurate"
	PassesPercentage StatsType = "Passes %"
)

func (StatsType) IsPercentage

func (st StatsType) IsPercentage() bool

Jump to

Keyboard shortcuts

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