Documentation ¶
Index ¶
- Variables
- func AggregateGameEvents(matchStats *MatchStats)
- func AggregateGamePhaseStats(matchStats *MatchStats)
- type Aggregator
- func (a *Aggregator) Aggregate() error
- func (a *Aggregator) AggregateGameEvents() error
- func (a *Aggregator) AggregateGamePhases() error
- func (a *Aggregator) AggregateTeamMetrics() error
- func (a *Aggregator) Process(filename string) error
- func (a *Aggregator) ReadBin(filename string) error
- func (a *Aggregator) WriteBin(filename string) error
- func (a *Aggregator) WriteJson(filename string) error
- type Command
- func (*Command) Descriptor() ([]byte, []int)
- func (m *Command) GetForTeam() TeamColor
- func (m *Command) GetType() CommandType
- func (*Command) ProtoMessage()
- func (m *Command) Reset()
- func (m *Command) String() string
- func (m *Command) XXX_DiscardUnknown()
- func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Command) XXX_Merge(src proto.Message)
- func (m *Command) XXX_Size() int
- func (m *Command) XXX_Unmarshal(b []byte) error
- type CommandType
- type DurationStats
- func (*DurationStats) Descriptor() ([]byte, []int)
- func (m *DurationStats) GetCount() uint32
- func (m *DurationStats) GetDuration() uint32
- func (m *DurationStats) GetDurationAvg() uint32
- func (m *DurationStats) GetDurationMax() uint32
- func (m *DurationStats) GetDurationMedian() uint32
- func (m *DurationStats) GetDurationMin() uint32
- func (m *DurationStats) GetDurationRelative() float32
- func (*DurationStats) ProtoMessage()
- func (m *DurationStats) Reset()
- func (m *DurationStats) String() string
- func (m *DurationStats) XXX_DiscardUnknown()
- func (m *DurationStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DurationStats) XXX_Merge(src proto.Message)
- func (m *DurationStats) XXX_Size() int
- func (m *DurationStats) XXX_Unmarshal(b []byte) error
- type GamePhase
- func (*GamePhase) Descriptor() ([]byte, []int)
- func (m *GamePhase) GetCommandEntry() *Command
- func (m *GamePhase) GetCommandExit() *Command
- func (m *GamePhase) GetCommandPrev() *Command
- func (m *GamePhase) GetDuration() uint32
- func (m *GamePhase) GetEndTime() uint64
- func (m *GamePhase) GetForTeam() TeamColor
- func (m *GamePhase) GetGameEventsEntry() []*sslproto.GameEvent
- func (m *GamePhase) GetGameEventsExit() []*sslproto.GameEvent
- func (m *GamePhase) GetNextCommandProposed() *Command
- func (m *GamePhase) GetStage() StageType
- func (m *GamePhase) GetStageTimeLeftEntry() int32
- func (m *GamePhase) GetStageTimeLeftExit() int32
- func (m *GamePhase) GetStartTime() uint64
- func (m *GamePhase) GetType() GamePhaseType
- func (*GamePhase) ProtoMessage()
- func (m *GamePhase) Reset()
- func (m *GamePhase) String() string
- func (m *GamePhase) XXX_DiscardUnknown()
- func (m *GamePhase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GamePhase) XXX_Merge(src proto.Message)
- func (m *GamePhase) XXX_Size() int
- func (m *GamePhase) XXX_Unmarshal(b []byte) error
- type GamePhaseDetector
- type GamePhaseType
- type Generator
- func (m *Generator) OnFirstRefereeMessage(matchStats *MatchStats, referee *sslproto.Referee)
- func (m *Generator) OnLastRefereeMessage(matchStats *MatchStats, referee *sslproto.Referee)
- func (m *Generator) OnNewCommand(matchStats *MatchStats, referee *sslproto.Referee)
- func (m *Generator) OnNewRefereeMessage(matchStats *MatchStats, referee *sslproto.Referee)
- func (m *Generator) OnNewStage(matchStats *MatchStats, referee *sslproto.Referee)
- func (m *Generator) Process(filename string) (*MatchStats, error)
- type MatchStats
- func (*MatchStats) Descriptor() ([]byte, []int)
- func (m *MatchStats) GetExtraTime() bool
- func (m *MatchStats) GetGameEventDurations() map[string]*DurationStats
- func (m *MatchStats) GetGamePhaseDurations() map[string]*DurationStats
- func (m *MatchStats) GetGamePhases() []*GamePhase
- func (m *MatchStats) GetMatchDuration() uint32
- func (m *MatchStats) GetName() string
- func (m *MatchStats) GetShootout() bool
- func (m *MatchStats) GetStartTime() uint64
- func (m *MatchStats) GetTeamStatsBlue() *TeamStats
- func (m *MatchStats) GetTeamStatsYellow() *TeamStats
- func (*MatchStats) ProtoMessage()
- func (m *MatchStats) Reset()
- func (m *MatchStats) String() string
- func (m *MatchStats) XXX_DiscardUnknown()
- func (m *MatchStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MatchStats) XXX_Merge(src proto.Message)
- func (m *MatchStats) XXX_Size() int
- func (m *MatchStats) XXX_Unmarshal(b []byte) error
- type MatchStatsCollection
- func (*MatchStatsCollection) Descriptor() ([]byte, []int)
- func (m *MatchStatsCollection) GetGameEventDurations() map[string]*DurationStats
- func (m *MatchStatsCollection) GetGamePhaseDurations() map[string]*DurationStats
- func (m *MatchStatsCollection) GetMatchStats() []*MatchStats
- func (m *MatchStatsCollection) GetTeamStats() map[string]*TeamStats
- func (*MatchStatsCollection) ProtoMessage()
- func (m *MatchStatsCollection) Reset()
- func (m *MatchStatsCollection) String() string
- func (m *MatchStatsCollection) XXX_DiscardUnknown()
- func (m *MatchStatsCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MatchStatsCollection) XXX_Merge(src proto.Message)
- func (m *MatchStatsCollection) XXX_Size() int
- func (m *MatchStatsCollection) XXX_Unmarshal(b []byte) error
- type MetaDataProcessor
- func (m *MetaDataProcessor) OnFirstRefereeMessage(matchStats *MatchStats, referee *sslproto.Referee)
- func (m *MetaDataProcessor) OnLastRefereeMessage(matchStats *MatchStats, referee *sslproto.Referee)
- func (m *MetaDataProcessor) OnNewCommand(matchStats *MatchStats, referee *sslproto.Referee)
- func (m *MetaDataProcessor) OnNewRefereeMessage(matchStats *MatchStats, referee *sslproto.Referee)
- func (m *MetaDataProcessor) OnNewStage(matchStats *MatchStats, referee *sslproto.Referee)
- type StageType
- type TeamColor
- type TeamStats
- func (*TeamStats) Descriptor() ([]byte, []int)
- func (m *TeamStats) GetBallPlacementTime() uint32
- func (m *TeamStats) GetBallPlacements() uint32
- func (m *TeamStats) GetConcededGoals() uint32
- func (m *TeamStats) GetFouls() uint32
- func (m *TeamStats) GetGoals() uint32
- func (m *TeamStats) GetMaxActiveYellowCards() uint32
- func (m *TeamStats) GetName() string
- func (m *TeamStats) GetPenaltyShotsSuccess() uint32
- func (m *TeamStats) GetPenaltyShotsTotal() uint32
- func (m *TeamStats) GetRedCards() uint32
- func (m *TeamStats) GetTimeoutTime() uint32
- func (m *TeamStats) GetTimeoutsLeft() uint32
- func (m *TeamStats) GetTimeoutsTaken() uint32
- func (m *TeamStats) GetYellowCards() uint32
- func (*TeamStats) ProtoMessage()
- func (m *TeamStats) Reset()
- func (m *TeamStats) String() string
- func (m *TeamStats) XXX_DiscardUnknown()
- func (m *TeamStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TeamStats) XXX_Merge(src proto.Message)
- func (m *TeamStats) XXX_Size() int
- func (m *TeamStats) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandType_name = map[int32]string{
0: "COMMAND_UNKNOWN",
1: "COMMAND_HALT",
2: "COMMAND_STOP",
3: "COMMAND_BALL_PLACEMENT",
4: "COMMAND_NORMAL_START",
5: "COMMAND_FORCE_START",
6: "COMMAND_DIRECT_FREE",
7: "COMMAND_INDIRECT_FREE",
8: "COMMAND_PREPARE_KICKOFF",
9: "COMMAND_PREPARE_PENALTY",
10: "COMMAND_TIMEOUT",
11: "COMMAND_GOAL",
}
View Source
var CommandType_value = map[string]int32{
"COMMAND_UNKNOWN": 0,
"COMMAND_HALT": 1,
"COMMAND_STOP": 2,
"COMMAND_BALL_PLACEMENT": 3,
"COMMAND_NORMAL_START": 4,
"COMMAND_FORCE_START": 5,
"COMMAND_DIRECT_FREE": 6,
"COMMAND_INDIRECT_FREE": 7,
"COMMAND_PREPARE_KICKOFF": 8,
"COMMAND_PREPARE_PENALTY": 9,
"COMMAND_TIMEOUT": 10,
"COMMAND_GOAL": 11,
}
View Source
var GamePhaseType_name = map[int32]string{
0: "PHASE_UNKNOWN",
1: "PHASE_RUNNING",
2: "PHASE_PREPARE_KICKOFF",
3: "PHASE_PREPARE_PENALTY",
4: "PHASE_STOP",
5: "PHASE_BALL_PLACEMENT",
6: "PHASE_TIMEOUT",
7: "PHASE_BREAK",
8: "PHASE_HALT",
9: "PHASE_POST_GAME",
}
View Source
var GamePhaseType_value = map[string]int32{
"PHASE_UNKNOWN": 0,
"PHASE_RUNNING": 1,
"PHASE_PREPARE_KICKOFF": 2,
"PHASE_PREPARE_PENALTY": 3,
"PHASE_STOP": 4,
"PHASE_BALL_PLACEMENT": 5,
"PHASE_TIMEOUT": 6,
"PHASE_BREAK": 7,
"PHASE_HALT": 8,
"PHASE_POST_GAME": 9,
}
View Source
var StageType_name = map[int32]string{
0: "STAGE_UNKNOWN",
1: "STAGE_NORMAL_FIRST_HALF_PRE",
2: "STAGE_NORMAL_FIRST_HALF",
3: "STAGE_NORMAL_HALF_TIME",
4: "STAGE_NORMAL_SECOND_HALF_PRE",
5: "STAGE_NORMAL_SECOND_HALF",
6: "STAGE_EXTRA_TIME_BREAK",
7: "STAGE_EXTRA_FIRST_HALF_PRE",
8: "STAGE_EXTRA_FIRST_HALF",
9: "STAGE_EXTRA_HALF_TIME",
10: "STAGE_EXTRA_SECOND_HALF_PRE",
11: "STAGE_EXTRA_SECOND_HALF",
12: "STAGE_PENALTY_SHOOTOUT_BREAK",
13: "STAGE_PENALTY_SHOOTOUT",
14: "STAGE_POST_GAME",
}
View Source
var StageType_value = map[string]int32{
"STAGE_UNKNOWN": 0,
"STAGE_NORMAL_FIRST_HALF_PRE": 1,
"STAGE_NORMAL_FIRST_HALF": 2,
"STAGE_NORMAL_HALF_TIME": 3,
"STAGE_NORMAL_SECOND_HALF_PRE": 4,
"STAGE_NORMAL_SECOND_HALF": 5,
"STAGE_EXTRA_TIME_BREAK": 6,
"STAGE_EXTRA_FIRST_HALF_PRE": 7,
"STAGE_EXTRA_FIRST_HALF": 8,
"STAGE_EXTRA_HALF_TIME": 9,
"STAGE_EXTRA_SECOND_HALF_PRE": 10,
"STAGE_EXTRA_SECOND_HALF": 11,
"STAGE_PENALTY_SHOOTOUT_BREAK": 12,
"STAGE_PENALTY_SHOOTOUT": 13,
"STAGE_POST_GAME": 14,
}
View Source
var TeamColor_name = map[int32]string{
0: "TEAM_UNKNOWN",
1: "TEAM_YELLOW",
2: "TEAM_BLUE",
3: "TEAM_NONE",
}
View Source
var TeamColor_value = map[string]int32{
"TEAM_UNKNOWN": 0,
"TEAM_YELLOW": 1,
"TEAM_BLUE": 2,
"TEAM_NONE": 3,
}
Functions ¶
func AggregateGameEvents ¶ added in v0.2.0
func AggregateGameEvents(matchStats *MatchStats)
func AggregateGamePhaseStats ¶ added in v0.2.0
func AggregateGamePhaseStats(matchStats *MatchStats)
Types ¶
type Aggregator ¶
type Aggregator struct {
Collection MatchStatsCollection
}
func NewAggregator ¶
func NewAggregator() *Aggregator
func (*Aggregator) Aggregate ¶ added in v0.2.0
func (a *Aggregator) Aggregate() error
func (*Aggregator) AggregateGameEvents ¶ added in v0.2.0
func (a *Aggregator) AggregateGameEvents() error
func (*Aggregator) AggregateGamePhases ¶ added in v0.2.0
func (a *Aggregator) AggregateGamePhases() error
func (*Aggregator) AggregateTeamMetrics ¶ added in v0.2.0
func (a *Aggregator) AggregateTeamMetrics() error
func (*Aggregator) Process ¶
func (a *Aggregator) Process(filename string) error
func (*Aggregator) ReadBin ¶
func (a *Aggregator) ReadBin(filename string) error
func (*Aggregator) WriteBin ¶
func (a *Aggregator) WriteBin(filename string) error
func (*Aggregator) WriteJson ¶
func (a *Aggregator) WriteJson(filename string) error
type Command ¶
type Command struct { Type CommandType `protobuf:"varint,1,opt,name=type,proto3,enum=CommandType" json:"type,omitempty"` ForTeam TeamColor `protobuf:"varint,2,opt,name=for_team,json=forTeam,proto3,enum=TeamColor" json:"for_team,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Command) Descriptor ¶
func (*Command) GetForTeam ¶
func (*Command) GetType ¶
func (m *Command) GetType() CommandType
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) XXX_DiscardUnknown ¶
func (m *Command) XXX_DiscardUnknown()
func (*Command) XXX_Marshal ¶
func (*Command) XXX_Unmarshal ¶
type CommandType ¶
type CommandType int32
const ( CommandType_COMMAND_UNKNOWN CommandType = 0 CommandType_COMMAND_HALT CommandType = 1 CommandType_COMMAND_STOP CommandType = 2 CommandType_COMMAND_BALL_PLACEMENT CommandType = 3 CommandType_COMMAND_NORMAL_START CommandType = 4 CommandType_COMMAND_FORCE_START CommandType = 5 CommandType_COMMAND_DIRECT_FREE CommandType = 6 CommandType_COMMAND_INDIRECT_FREE CommandType = 7 CommandType_COMMAND_PREPARE_KICKOFF CommandType = 8 CommandType_COMMAND_PREPARE_PENALTY CommandType = 9 CommandType_COMMAND_TIMEOUT CommandType = 10 CommandType_COMMAND_GOAL CommandType = 11 )
func (CommandType) EnumDescriptor ¶
func (CommandType) EnumDescriptor() ([]byte, []int)
func (CommandType) String ¶
func (x CommandType) String() string
type DurationStats ¶ added in v0.2.0
type DurationStats struct { Duration uint32 `protobuf:"varint,1,opt,name=duration,proto3" json:"duration,omitempty"` DurationMin uint32 `protobuf:"varint,2,opt,name=duration_min,json=durationMin,proto3" json:"duration_min,omitempty"` DurationMax uint32 `protobuf:"varint,3,opt,name=duration_max,json=durationMax,proto3" json:"duration_max,omitempty"` DurationMedian uint32 `protobuf:"varint,4,opt,name=duration_median,json=durationMedian,proto3" json:"duration_median,omitempty"` DurationAvg uint32 `protobuf:"varint,5,opt,name=duration_avg,json=durationAvg,proto3" json:"duration_avg,omitempty"` DurationRelative float32 `protobuf:"fixed32,6,opt,name=duration_relative,json=durationRelative,proto3" json:"duration_relative,omitempty"` Count uint32 `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DurationStats) Descriptor ¶ added in v0.2.0
func (*DurationStats) Descriptor() ([]byte, []int)
func (*DurationStats) GetCount ¶ added in v0.3.0
func (m *DurationStats) GetCount() uint32
func (*DurationStats) GetDuration ¶ added in v0.2.0
func (m *DurationStats) GetDuration() uint32
func (*DurationStats) GetDurationAvg ¶ added in v0.2.0
func (m *DurationStats) GetDurationAvg() uint32
func (*DurationStats) GetDurationMax ¶ added in v0.2.0
func (m *DurationStats) GetDurationMax() uint32
func (*DurationStats) GetDurationMedian ¶ added in v0.2.0
func (m *DurationStats) GetDurationMedian() uint32
func (*DurationStats) GetDurationMin ¶ added in v0.2.0
func (m *DurationStats) GetDurationMin() uint32
func (*DurationStats) GetDurationRelative ¶ added in v0.2.0
func (m *DurationStats) GetDurationRelative() float32
func (*DurationStats) ProtoMessage ¶ added in v0.2.0
func (*DurationStats) ProtoMessage()
func (*DurationStats) Reset ¶ added in v0.2.0
func (m *DurationStats) Reset()
func (*DurationStats) String ¶ added in v0.2.0
func (m *DurationStats) String() string
func (*DurationStats) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *DurationStats) XXX_DiscardUnknown()
func (*DurationStats) XXX_Marshal ¶ added in v0.2.0
func (m *DurationStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DurationStats) XXX_Merge ¶ added in v0.2.0
func (m *DurationStats) XXX_Merge(src proto.Message)
func (*DurationStats) XXX_Size ¶ added in v0.2.0
func (m *DurationStats) XXX_Size() int
func (*DurationStats) XXX_Unmarshal ¶ added in v0.2.0
func (m *DurationStats) XXX_Unmarshal(b []byte) error
type GamePhase ¶
type GamePhase struct { StartTime uint64 `protobuf:"varint,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime uint64 `protobuf:"varint,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Duration uint32 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"` Type GamePhaseType `protobuf:"varint,4,opt,name=type,proto3,enum=GamePhaseType" json:"type,omitempty"` CommandEntry *Command `protobuf:"bytes,5,opt,name=command_entry,json=commandEntry,proto3" json:"command_entry,omitempty"` CommandExit *Command `protobuf:"bytes,6,opt,name=command_exit,json=commandExit,proto3" json:"command_exit,omitempty"` ForTeam TeamColor `protobuf:"varint,7,opt,name=for_team,json=forTeam,proto3,enum=TeamColor" json:"for_team,omitempty"` GameEventsEntry []*sslproto.GameEvent `protobuf:"bytes,8,rep,name=game_events_entry,json=gameEventsEntry,proto3" json:"game_events_entry,omitempty"` GameEventsExit []*sslproto.GameEvent `protobuf:"bytes,9,rep,name=game_events_exit,json=gameEventsExit,proto3" json:"game_events_exit,omitempty"` NextCommandProposed *Command `protobuf:"bytes,10,opt,name=next_command_proposed,json=nextCommandProposed,proto3" json:"next_command_proposed,omitempty"` Stage StageType `protobuf:"varint,11,opt,name=stage,proto3,enum=StageType" json:"stage,omitempty"` StageTimeLeftEntry int32 `protobuf:"zigzag32,12,opt,name=stage_time_left_entry,json=stageTimeLeftEntry,proto3" json:"stage_time_left_entry,omitempty"` StageTimeLeftExit int32 `protobuf:"zigzag32,13,opt,name=stage_time_left_exit,json=stageTimeLeftExit,proto3" json:"stage_time_left_exit,omitempty"` CommandPrev *Command `protobuf:"bytes,14,opt,name=command_prev,json=commandPrev,proto3" json:"command_prev,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GamePhase) Descriptor ¶
func (*GamePhase) GetCommandEntry ¶
func (*GamePhase) GetCommandExit ¶
func (*GamePhase) GetCommandPrev ¶
func (*GamePhase) GetDuration ¶
func (*GamePhase) GetEndTime ¶
func (*GamePhase) GetForTeam ¶
func (*GamePhase) GetGameEventsEntry ¶
func (*GamePhase) GetGameEventsExit ¶
func (*GamePhase) GetNextCommandProposed ¶
func (*GamePhase) GetStageTimeLeftEntry ¶
func (*GamePhase) GetStageTimeLeftExit ¶
func (*GamePhase) GetStartTime ¶
func (*GamePhase) GetType ¶
func (m *GamePhase) GetType() GamePhaseType
func (*GamePhase) ProtoMessage ¶
func (*GamePhase) ProtoMessage()
func (*GamePhase) XXX_DiscardUnknown ¶
func (m *GamePhase) XXX_DiscardUnknown()
func (*GamePhase) XXX_Marshal ¶
func (*GamePhase) XXX_Unmarshal ¶
type GamePhaseDetector ¶
type GamePhaseDetector struct {
// contains filtered or unexported fields
}
func NewGamePhaseDetector ¶ added in v0.2.0
func NewGamePhaseDetector() *GamePhaseDetector
func (*GamePhaseDetector) OnLastRefereeMessage ¶
func (d *GamePhaseDetector) OnLastRefereeMessage(matchStats *MatchStats, referee *sslproto.Referee)
func (*GamePhaseDetector) OnNewCommand ¶
func (d *GamePhaseDetector) OnNewCommand(matchStats *MatchStats, referee *sslproto.Referee)
func (*GamePhaseDetector) OnNewStage ¶
func (d *GamePhaseDetector) OnNewStage(matchStats *MatchStats, referee *sslproto.Referee)
type GamePhaseType ¶
type GamePhaseType int32
const ( GamePhaseType_PHASE_UNKNOWN GamePhaseType = 0 GamePhaseType_PHASE_RUNNING GamePhaseType = 1 GamePhaseType_PHASE_PREPARE_KICKOFF GamePhaseType = 2 GamePhaseType_PHASE_PREPARE_PENALTY GamePhaseType = 3 GamePhaseType_PHASE_STOP GamePhaseType = 4 GamePhaseType_PHASE_BALL_PLACEMENT GamePhaseType = 5 GamePhaseType_PHASE_TIMEOUT GamePhaseType = 6 GamePhaseType_PHASE_BREAK GamePhaseType = 7 GamePhaseType_PHASE_HALT GamePhaseType = 8 GamePhaseType_PHASE_POST_GAME GamePhaseType = 9 )
func (GamePhaseType) EnumDescriptor ¶
func (GamePhaseType) EnumDescriptor() ([]byte, []int)
func (GamePhaseType) String ¶
func (x GamePhaseType) String() string
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func NewGenerator() *Generator
func (*Generator) OnFirstRefereeMessage ¶
func (m *Generator) OnFirstRefereeMessage(matchStats *MatchStats, referee *sslproto.Referee)
func (*Generator) OnLastRefereeMessage ¶
func (m *Generator) OnLastRefereeMessage(matchStats *MatchStats, referee *sslproto.Referee)
func (*Generator) OnNewCommand ¶
func (m *Generator) OnNewCommand(matchStats *MatchStats, referee *sslproto.Referee)
func (*Generator) OnNewRefereeMessage ¶
func (m *Generator) OnNewRefereeMessage(matchStats *MatchStats, referee *sslproto.Referee)
func (*Generator) OnNewStage ¶
func (m *Generator) OnNewStage(matchStats *MatchStats, referee *sslproto.Referee)
type MatchStats ¶
type MatchStats struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` MatchDuration uint32 `protobuf:"varint,2,opt,name=match_duration,json=matchDuration,proto3" json:"match_duration,omitempty"` StartTime uint64 `protobuf:"varint,10,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` GamePhases []*GamePhase `protobuf:"bytes,3,rep,name=game_phases,json=gamePhases,proto3" json:"game_phases,omitempty"` ExtraTime bool `protobuf:"varint,4,opt,name=extra_time,json=extraTime,proto3" json:"extra_time,omitempty"` Shootout bool `protobuf:"varint,5,opt,name=shootout,proto3" json:"shootout,omitempty"` TeamStatsYellow *TeamStats `protobuf:"bytes,6,opt,name=team_stats_yellow,json=teamStatsYellow,proto3" json:"team_stats_yellow,omitempty"` TeamStatsBlue *TeamStats `protobuf:"bytes,7,opt,name=team_stats_blue,json=teamStatsBlue,proto3" json:"team_stats_blue,omitempty"` GamePhaseDurations map[string]*DurationStats `` /* 205-byte string literal not displayed */ GameEventDurations map[string]*DurationStats `` /* 205-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MatchStats) Descriptor ¶
func (*MatchStats) Descriptor() ([]byte, []int)
func (*MatchStats) GetExtraTime ¶
func (m *MatchStats) GetExtraTime() bool
func (*MatchStats) GetGameEventDurations ¶ added in v0.2.0
func (m *MatchStats) GetGameEventDurations() map[string]*DurationStats
func (*MatchStats) GetGamePhaseDurations ¶ added in v0.2.0
func (m *MatchStats) GetGamePhaseDurations() map[string]*DurationStats
func (*MatchStats) GetGamePhases ¶
func (m *MatchStats) GetGamePhases() []*GamePhase
func (*MatchStats) GetMatchDuration ¶
func (m *MatchStats) GetMatchDuration() uint32
func (*MatchStats) GetName ¶
func (m *MatchStats) GetName() string
func (*MatchStats) GetShootout ¶
func (m *MatchStats) GetShootout() bool
func (*MatchStats) GetStartTime ¶ added in v0.3.0
func (m *MatchStats) GetStartTime() uint64
func (*MatchStats) GetTeamStatsBlue ¶
func (m *MatchStats) GetTeamStatsBlue() *TeamStats
func (*MatchStats) GetTeamStatsYellow ¶
func (m *MatchStats) GetTeamStatsYellow() *TeamStats
func (*MatchStats) ProtoMessage ¶
func (*MatchStats) ProtoMessage()
func (*MatchStats) Reset ¶
func (m *MatchStats) Reset()
func (*MatchStats) String ¶
func (m *MatchStats) String() string
func (*MatchStats) XXX_DiscardUnknown ¶
func (m *MatchStats) XXX_DiscardUnknown()
func (*MatchStats) XXX_Marshal ¶
func (m *MatchStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MatchStats) XXX_Merge ¶
func (m *MatchStats) XXX_Merge(src proto.Message)
func (*MatchStats) XXX_Size ¶
func (m *MatchStats) XXX_Size() int
func (*MatchStats) XXX_Unmarshal ¶
func (m *MatchStats) XXX_Unmarshal(b []byte) error
type MatchStatsCollection ¶
type MatchStatsCollection struct { MatchStats []*MatchStats `protobuf:"bytes,1,rep,name=match_stats,json=matchStats,proto3" json:"match_stats,omitempty"` TeamStats map[string]*TeamStats `` /* 176-byte string literal not displayed */ GamePhaseDurations map[string]*DurationStats `` /* 205-byte string literal not displayed */ GameEventDurations map[string]*DurationStats `` /* 205-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MatchStatsCollection) Descriptor ¶
func (*MatchStatsCollection) Descriptor() ([]byte, []int)
func (*MatchStatsCollection) GetGameEventDurations ¶ added in v0.2.0
func (m *MatchStatsCollection) GetGameEventDurations() map[string]*DurationStats
func (*MatchStatsCollection) GetGamePhaseDurations ¶ added in v0.2.0
func (m *MatchStatsCollection) GetGamePhaseDurations() map[string]*DurationStats
func (*MatchStatsCollection) GetMatchStats ¶
func (m *MatchStatsCollection) GetMatchStats() []*MatchStats
func (*MatchStatsCollection) GetTeamStats ¶ added in v0.2.0
func (m *MatchStatsCollection) GetTeamStats() map[string]*TeamStats
func (*MatchStatsCollection) ProtoMessage ¶
func (*MatchStatsCollection) ProtoMessage()
func (*MatchStatsCollection) Reset ¶
func (m *MatchStatsCollection) Reset()
func (*MatchStatsCollection) String ¶
func (m *MatchStatsCollection) String() string
func (*MatchStatsCollection) XXX_DiscardUnknown ¶
func (m *MatchStatsCollection) XXX_DiscardUnknown()
func (*MatchStatsCollection) XXX_Marshal ¶
func (m *MatchStatsCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MatchStatsCollection) XXX_Merge ¶
func (m *MatchStatsCollection) XXX_Merge(src proto.Message)
func (*MatchStatsCollection) XXX_Size ¶
func (m *MatchStatsCollection) XXX_Size() int
func (*MatchStatsCollection) XXX_Unmarshal ¶
func (m *MatchStatsCollection) XXX_Unmarshal(b []byte) error
type MetaDataProcessor ¶
type MetaDataProcessor struct {
// contains filtered or unexported fields
}
func NewMetaDataProcessor ¶ added in v0.2.0
func NewMetaDataProcessor() *MetaDataProcessor
func (*MetaDataProcessor) OnFirstRefereeMessage ¶
func (m *MetaDataProcessor) OnFirstRefereeMessage(matchStats *MatchStats, referee *sslproto.Referee)
func (*MetaDataProcessor) OnLastRefereeMessage ¶
func (m *MetaDataProcessor) OnLastRefereeMessage(matchStats *MatchStats, referee *sslproto.Referee)
func (*MetaDataProcessor) OnNewCommand ¶
func (m *MetaDataProcessor) OnNewCommand(matchStats *MatchStats, referee *sslproto.Referee)
func (*MetaDataProcessor) OnNewRefereeMessage ¶
func (m *MetaDataProcessor) OnNewRefereeMessage(matchStats *MatchStats, referee *sslproto.Referee)
func (*MetaDataProcessor) OnNewStage ¶
func (m *MetaDataProcessor) OnNewStage(matchStats *MatchStats, referee *sslproto.Referee)
type StageType ¶
type StageType int32
const ( StageType_STAGE_UNKNOWN StageType = 0 StageType_STAGE_NORMAL_FIRST_HALF_PRE StageType = 1 StageType_STAGE_NORMAL_FIRST_HALF StageType = 2 StageType_STAGE_NORMAL_HALF_TIME StageType = 3 StageType_STAGE_NORMAL_SECOND_HALF_PRE StageType = 4 StageType_STAGE_NORMAL_SECOND_HALF StageType = 5 StageType_STAGE_EXTRA_TIME_BREAK StageType = 6 StageType_STAGE_EXTRA_FIRST_HALF_PRE StageType = 7 StageType_STAGE_EXTRA_FIRST_HALF StageType = 8 StageType_STAGE_EXTRA_HALF_TIME StageType = 9 StageType_STAGE_EXTRA_SECOND_HALF_PRE StageType = 10 StageType_STAGE_EXTRA_SECOND_HALF StageType = 11 StageType_STAGE_PENALTY_SHOOTOUT_BREAK StageType = 12 StageType_STAGE_PENALTY_SHOOTOUT StageType = 13 StageType_STAGE_POST_GAME StageType = 14 )
func (StageType) EnumDescriptor ¶
type TeamStats ¶
type TeamStats struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Goals uint32 `protobuf:"varint,2,opt,name=goals,proto3" json:"goals,omitempty"` Fouls uint32 `protobuf:"varint,3,opt,name=fouls,proto3" json:"fouls,omitempty"` YellowCards uint32 `protobuf:"varint,4,opt,name=yellow_cards,json=yellowCards,proto3" json:"yellow_cards,omitempty"` RedCards uint32 `protobuf:"varint,5,opt,name=red_cards,json=redCards,proto3" json:"red_cards,omitempty"` TimeoutTime uint32 `protobuf:"varint,6,opt,name=timeout_time,json=timeoutTime,proto3" json:"timeout_time,omitempty"` TimeoutsTaken uint32 `protobuf:"varint,7,opt,name=timeouts_taken,json=timeoutsTaken,proto3" json:"timeouts_taken,omitempty"` TimeoutsLeft uint32 `protobuf:"varint,14,opt,name=timeouts_left,json=timeoutsLeft,proto3" json:"timeouts_left,omitempty"` PenaltyShotsTotal uint32 `protobuf:"varint,8,opt,name=penalty_shots_total,json=penaltyShotsTotal,proto3" json:"penalty_shots_total,omitempty"` PenaltyShotsSuccess uint32 `protobuf:"varint,9,opt,name=penalty_shots_success,json=penaltyShotsSuccess,proto3" json:"penalty_shots_success,omitempty"` ConcededGoals uint32 `protobuf:"varint,10,opt,name=conceded_goals,json=concededGoals,proto3" json:"conceded_goals,omitempty"` BallPlacementTime uint32 `protobuf:"varint,11,opt,name=ball_placement_time,json=ballPlacementTime,proto3" json:"ball_placement_time,omitempty"` BallPlacements uint32 `protobuf:"varint,12,opt,name=ball_placements,json=ballPlacements,proto3" json:"ball_placements,omitempty"` MaxActiveYellowCards uint32 `` /* 127-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TeamStats) Descriptor ¶
func (*TeamStats) GetBallPlacementTime ¶
func (*TeamStats) GetBallPlacements ¶
func (*TeamStats) GetConcededGoals ¶
func (*TeamStats) GetMaxActiveYellowCards ¶
func (*TeamStats) GetPenaltyShotsSuccess ¶
func (*TeamStats) GetPenaltyShotsTotal ¶
func (*TeamStats) GetRedCards ¶
func (*TeamStats) GetTimeoutTime ¶
func (*TeamStats) GetTimeoutsLeft ¶ added in v0.3.0
func (*TeamStats) GetTimeoutsTaken ¶ added in v0.3.0
func (*TeamStats) GetYellowCards ¶
func (*TeamStats) ProtoMessage ¶
func (*TeamStats) ProtoMessage()
func (*TeamStats) XXX_DiscardUnknown ¶
func (m *TeamStats) XXX_DiscardUnknown()
func (*TeamStats) XXX_Marshal ¶
func (*TeamStats) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.