package
0.0.0-20241216163332-51dc31fa9dc7
Repository: https://github.com/jacobbrewer1/f1-data.git
Documentation: pkg.go.dev

# Functions

Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewGetConstructorsChampionshipRequest generates requests for GetConstructorsChampionship.
NewGetDriversChampionshipRequest generates requests for GetDriversChampionship.
NewGetDriversRequest generates requests for GetDrivers.
NewGetRaceResultsRequest generates requests for GetRaceResults.
NewGetSeasonRacesRequest generates requests for GetSeasonRaces.
NewGetSeasonsRequest generates requests for GetSeasons.
ParseGetConstructorsChampionshipResponse parses an HTTP response from a GetConstructorsChampionshipWithResponse call.
ParseGetDriversChampionshipResponse parses an HTTP response from a GetDriversChampionshipWithResponse call.
ParseGetDriversResponse parses an HTTP response from a GetDriversWithResponse call.
ParseGetRaceResultsResponse parses an HTTP response from a GetRaceResultsWithResponse call.
ParseGetSeasonRacesResponse parses an HTTP response from a GetSeasonRacesWithResponse call.
ParseGetSeasonsResponse parses an HTTP response from a GetSeasonsWithResponse call.
RegisterHandlers registers the api handlers.
RegisterUnauthedHandlers registers any api handlers which do not have any authentication on them.
WithAuthorization applies the passed authorization middleware to the server.
WithBaseURL overrides the baseURL.
WithErrorHandlerFunc sets the error handler function for the server.
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client.
WithMetricsMiddleware applies the metrics middleware to the server.
WithRateLimiter applies the rate limiter middleware to routes with x-global-rate-limit.
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request.

# Structs

Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
ConstructorChampionship defines the model for constructor_championship.
ConstructorChampionshipResponse defines the model for constructor_championship_response.
Driver defines the model for driver.
DriverChampionship defines the model for driver_championship.
DriverChampionshipResponse defines the model for driver_championship_response.
DriverResponse defines the model for driver_response.
GetConstructorsChampionshipParams defines parameters for GetConstructorsChampionship.
No description provided by the author
GetDriversChampionshipParams defines parameters for GetDriversChampionship.
No description provided by the author
GetDriversParams defines parameters for GetDrivers.
No description provided by the author
GetRaceResultsParams defines parameters for GetRaceResults.
No description provided by the author
GetSeasonRacesParams defines parameters for GetSeasonRaces.
No description provided by the author
GetSeasonsParams defines parameters for GetSeasons.
No description provided by the author
No description provided by the author
Race defines the model for race.
RaceResponse defines the model for race_response.
RaceResult defines the model for race_result.
RaceResultResponse defines the model for race_result_response.
No description provided by the author
No description provided by the author
Season defines the model for season.
SeasonResponse defines the model for season_response.
ServerInterfaceWrapper converts contexts to parameters.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

The interface specification for the client above.
ClientWithResponsesInterface is the interface specification for the client with responses above.
Doer performs HTTP requests.
ServerInterface represents all server handlers.

# Type aliases

ClientOption allows setting custom parameters during construction.
No description provided by the author
GetConstructorsChampionshipParamsSortDir defines parameters for GetConstructorsChampionship.
GetDriversChampionshipParamsSortDir defines parameters for GetDriversChampionship.
GetDriversParamsSortDir defines parameters for GetDrivers.
GetRaceResultsParamsSortDir defines parameters for GetRaceResults.
GetSeasonRacesParamsSortDir defines parameters for GetSeasonRaces.
GetSeasonsParamsSortDir defines parameters for GetSeasons.
No description provided by the author
PathRaceId defines the model for path_race_id.
PathYear defines the model for path_year.
QueryName defines the model for query_name.
QueryNationality defines the model for query_nationality.
QueryTag defines the model for query_tag.
QueryTeam defines the model for query_team.
QueryYear defines the model for query_year.
QueryYearMax defines the model for query_year_max.
QueryYearMin defines the model for query_year_min.
No description provided by the author
RequestEditorFn is the function signature for the RequestEditor callback function.
ServerOption represents an optional feature applied to the server.