Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventTypeGoal = 36 EventTypeFoulPenaltyGoal = 37 EventTypeOvertimeGoal = 47 EventTypeYellowCard = 43 EventTypeRedCard = 44 EventTypeDoubleYellowCard = 45 EventTypePenaltyGoal = 41 EventTypePenaltyMissed = 40 )
Variables ¶
View Source
var ( ErrMatchAlreadyFollowed = errors.New("match already followed") ErrMatchHasFinished = errors.New("match has finished") ErrListenerNotFound = errors.New("listener not found") )
errors
Functions ¶
func GetTeamImgURL ¶
func UnfollowMatch ¶
func UnfollowMatch(id string)
Types ¶
type ListenerFn ¶
type LiveMatch ¶
type LiveMatch struct { MatchID string CurrentData *MatchInfo PreviousData *MatchInfo Listeners map[string]ListenerFn }
func GetLiveMatch ¶
func (*LiveMatch) AddListener ¶
func (liveMatch *LiveMatch) AddListener(id string, listener ListenerFn)
func (*LiveMatch) RemoveListener ¶
Click to show internal directories.
Click to hide internal directories.