Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct { Reporter string `json:"reporter"` EventKey string `json:"eventKey"` MatchKey string `json:"matchKey"` Team string `json:"team"` Notes *string `json:"notes"` Stats map[string]interface{} `json:"stats"` }
Report stores information about how a team performed in a match.
type Service ¶
type Service interface { Upsert(rep Report, as alliance.Service) error GetReportedOn(eventKey string) ([]string, error) GetStatsByEventAndTeam(eventKey, team string) ([]analysis.Data, error) GetNotesByEventAndTeam(eventKey, team string) (map[string]string, error) GetReportsByEventAndTeam(eventKey, team string) ([]Report, error) GetReportsByTeam(team string) ([]Report, error) GetReporterStats() (map[string]int, error) }
Service is a store for reports.
Click to show internal directories.
Click to hide internal directories.