Documentation ¶
Index ¶
- func New(db *sql.DB) report.Service
- type Service
- func (s *Service) GetNotesByEventAndTeam(eventKey, team string) (map[string]string, error)
- func (s *Service) GetReportedOn(eventKey string) (reportedOn []string, err error)
- func (s *Service) GetReporterStats() (map[string]int, error)
- func (s *Service) GetReportsByEventAndTeam(eventKey, team string) ([]report.Report, error)
- func (s *Service) GetReportsByTeam(team string) ([]report.Report, error)
- func (s *Service) GetStatsByEventAndTeam(eventKey, team string) ([]analysis.Data, error)
- func (s *Service) Upsert(rep report.Report, as alliance.Service) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is used for getting information about a report from a postgres database.
func (*Service) GetNotesByEventAndTeam ¶
GetNotesByEventAndTeam gets all notes from reports of a certain team at a certain event.
func (*Service) GetReportedOn ¶
GetReportedOn gets all teams that have been reported on at an event.
func (*Service) GetReporterStats ¶
GetReporterStats gets a map of all reporters to the amount of reports they have submitted.
func (*Service) GetReportsByEventAndTeam ¶
GetReportsByEventAndTeam gets all reports on a certain team at a certain event.
func (*Service) GetReportsByTeam ¶
GetReportsByTeam gets all reports on a certain team from all events.
func (*Service) GetStatsByEventAndTeam ¶
GetStatsByEventAndTeam gets all statistics from reports of a certain team at a certain event.
Click to show internal directories.
Click to hide internal directories.