report

package
v0.0.0-...-cb2c959 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: MIT Imports: 2 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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