Documentation ¶
Index ¶
- func ConvertActionsToStat(submitActions *submit_actions.SubmitActions) (db.Stats2023, error)
- func ConvertActionsToStat2024(submit2024Actions *submit_2024_actions.Submit2024Actions) (db.Stats2024, error)
- func HandleRequests(db Database, scoutingServer server.ScoutingServer)
- type Action
- type Action2024
- type Database
- type Delete2023DataScouting
- type Delete2023DataScoutingHandler
- type Delete2023DataScoutingResponseT
- type Delete2024DataScouting
- type Delete2024DataScoutingHandler
- type Delete2024DataScoutingResponseT
- type MatchAssemblyKey
- type Request2023DataScouting
- type Request2023DataScoutingResponseT
- type Request2024DataScouting
- type Request2024DataScoutingResponseT
- type RequestAllDriverRankings
- type RequestAllDriverRankingsResponseT
- type RequestAllMatches
- type RequestAllMatchesResponseT
- type RequestAllNotes
- type RequestAllNotesResponseT
- type RequestAllPitImages
- type RequestAllPitImagesResponseT
- type RequestNotesForTeam
- type RequestNotesForTeamResponseT
- type RequestPitImages
- type RequestPitImagesResponseT
- type RequestShiftSchedule
- type RequestShiftScheduleResponseT
- type Submit2024Actions
- type Submit2024ActionsResponseT
- type SubmitActions
- type SubmitActionsResponseT
- type SubmitDriverRanking
- type SubmitDriverRankingHandler
- type SubmitDriverRankingResponseT
- type SubmitNotes
- type SubmitNotesResponseT
- type SubmitPitImage
- type SubmitPitImageResponseT
- type SubmitShiftSchedule
- type SubmitShiftScheduleResponseT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertActionsToStat ¶
func ConvertActionsToStat(submitActions *submit_actions.SubmitActions) (db.Stats2023, error)
func ConvertActionsToStat2024 ¶
func ConvertActionsToStat2024(submit2024Actions *submit_2024_actions.Submit2024Actions) (db.Stats2024, error)
func HandleRequests ¶
func HandleRequests(db Database, scoutingServer server.ScoutingServer)
Types ¶
type Action ¶
type Action = submit_actions.Action
type Action2024 ¶
type Action2024 = submit_2024_actions.Action
type Database ¶
type Database interface { AddToMatch(db.TeamMatch) error AddToShift(db.Shift) error AddToStats2023(db.Stats2023) error AddToStats2024(db.Stats2024) error ReturnMatches() ([]db.TeamMatch, error) ReturnAllNotes() ([]db.NotesData, error) ReturnAllDriverRankings() ([]db.DriverRankingData, error) ReturnAllShifts() ([]db.Shift, error) ReturnStats2023() ([]db.Stats2023, error) ReturnStats2023ForTeam(teamNumber string, matchNumber int32, setNumber int32, compLevel string, preScouting bool) ([]db.Stats2023, error) ReturnStats2024() ([]db.Stats2024, error) ReturnStats2024ForTeam(teamNumber string, matchNumber int32, setNumber int32, compLevel string, compType string) ([]db.Stats2024, error) QueryAllShifts(int) ([]db.Shift, error) QueryNotes(string) ([]string, error) QueryPitImages(string) ([]db.RequestedPitImage, error) ReturnPitImages() ([]db.PitImage, error) AddNotes(db.NotesData) error AddPitImage(db.PitImage) error AddDriverRanking(db.DriverRankingData) error AddAction(db.Action) error DeleteFromStats(string, int32, int32, string) error DeleteFromStats2024(string, int32, int32, string) error DeleteFromActions(string, int32, int32, string) error }
The interface we expect the database abstraction to conform to. We use an interface here because it makes unit testing easier.
type Delete2023DataScouting ¶
type Delete2023DataScouting = delete_2023_data_scouting.Delete2023DataScouting
type Delete2023DataScoutingHandler ¶
type Delete2023DataScoutingHandler struct {
// contains filtered or unexported fields
}
func (Delete2023DataScoutingHandler) ServeHTTP ¶
func (handler Delete2023DataScoutingHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type Delete2023DataScoutingResponseT ¶
type Delete2023DataScoutingResponseT = delete_2023_data_scouting_response.Delete2023DataScoutingResponseT
type Delete2024DataScouting ¶
type Delete2024DataScouting = delete_2024_data_scouting.Delete2024DataScouting
type Delete2024DataScoutingHandler ¶
type Delete2024DataScoutingHandler struct {
// contains filtered or unexported fields
}
func (Delete2024DataScoutingHandler) ServeHTTP ¶
func (handler Delete2024DataScoutingHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type Delete2024DataScoutingResponseT ¶
type Delete2024DataScoutingResponseT = delete_2024_data_scouting_response.Delete2024DataScoutingResponseT
type MatchAssemblyKey ¶
Change structure of match objects in the database(1 per team) to the old match structure(1 per match) that the webserver uses. We use the information in this struct to identify which match object corresponds to which old match structure object.
type Request2023DataScouting ¶
type Request2023DataScouting = request_2023_data_scouting.Request2023DataScouting
type Request2023DataScoutingResponseT ¶
type Request2023DataScoutingResponseT = request_2023_data_scouting_response.Request2023DataScoutingResponseT
type Request2024DataScouting ¶
type Request2024DataScouting = request_2024_data_scouting.Request2024DataScouting
type Request2024DataScoutingResponseT ¶
type Request2024DataScoutingResponseT = request_2024_data_scouting_response.Request2024DataScoutingResponseT
type RequestAllDriverRankings ¶
type RequestAllDriverRankings = request_all_driver_rankings.RequestAllDriverRankings
type RequestAllDriverRankingsResponseT ¶
type RequestAllDriverRankingsResponseT = request_all_driver_rankings_response.RequestAllDriverRankingsResponseT
type RequestAllMatches ¶
type RequestAllMatches = request_all_matches.RequestAllMatches
type RequestAllMatchesResponseT ¶
type RequestAllMatchesResponseT = request_all_matches_response.RequestAllMatchesResponseT
type RequestAllNotes ¶
type RequestAllNotes = request_all_notes.RequestAllNotes
type RequestAllNotesResponseT ¶
type RequestAllNotesResponseT = request_all_notes_response.RequestAllNotesResponseT
type RequestAllPitImages ¶
type RequestAllPitImages = request_all_pit_images.RequestAllPitImages
type RequestAllPitImagesResponseT ¶
type RequestAllPitImagesResponseT = request_all_pit_images_response.RequestAllPitImagesResponseT
type RequestNotesForTeam ¶
type RequestNotesForTeam = request_notes_for_team.RequestNotesForTeam
type RequestNotesForTeamResponseT ¶
type RequestNotesForTeamResponseT = request_notes_for_team_response.RequestNotesForTeamResponseT
type RequestPitImages ¶
type RequestPitImages = request_pit_images.RequestPitImages
type RequestPitImagesResponseT ¶
type RequestPitImagesResponseT = request_pit_images_response.RequestPitImagesResponseT
type RequestShiftSchedule ¶
type RequestShiftSchedule = request_shift_schedule.RequestShiftSchedule
type RequestShiftScheduleResponseT ¶
type RequestShiftScheduleResponseT = request_shift_schedule_response.RequestShiftScheduleResponseT
type Submit2024Actions ¶
type Submit2024Actions = submit_2024_actions.Submit2024Actions
type Submit2024ActionsResponseT ¶
type Submit2024ActionsResponseT = submit_2024_actions_response.Submit2024ActionsResponseT
type SubmitActions ¶
type SubmitActions = submit_actions.SubmitActions
type SubmitActionsResponseT ¶
type SubmitActionsResponseT = submit_actions_response.SubmitActionsResponseT
type SubmitDriverRanking ¶
type SubmitDriverRanking = submit_driver_ranking.SubmitDriverRanking
type SubmitDriverRankingHandler ¶
type SubmitDriverRankingHandler struct {
// contains filtered or unexported fields
}
func (SubmitDriverRankingHandler) ServeHTTP ¶
func (handler SubmitDriverRankingHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
type SubmitDriverRankingResponseT ¶
type SubmitDriverRankingResponseT = submit_driver_ranking_response.SubmitDriverRankingResponseT
type SubmitNotes ¶
type SubmitNotes = submit_notes.SubmitNotes
type SubmitNotesResponseT ¶
type SubmitNotesResponseT = submit_notes_response.SubmitNotesResponseT
type SubmitPitImage ¶
type SubmitPitImage = submit_pit_image.SubmitPitImage
type SubmitPitImageResponseT ¶
type SubmitPitImageResponseT = submit_pit_image_response.SubmitPitImageResponseT
type SubmitShiftSchedule ¶
type SubmitShiftSchedule = submit_shift_schedule.SubmitShiftSchedule
type SubmitShiftScheduleResponseT ¶
type SubmitShiftScheduleResponseT = submit_shift_schedule_response.SubmitShiftScheduleResponseT
Click to show internal directories.
Click to hide internal directories.