Documentation ¶
Overview ¶
THIS IS GENERATED CODE. DO NOT EDIT.
Index ¶
- type Handler
- func (h *Handler) GetFilmCharacters(ctx context.Context, req *connect.Request[relationsv1.GetFilmRelationsRequest]) (*connect.Response[relationsv1.GetCharactersResponse], error)
- func (h *Handler) GetFilmPlanets(ctx context.Context, req *connect.Request[relationsv1.GetFilmRelationsRequest]) (*connect.Response[relationsv1.GetPlanetsResponse], error)
- func (h *Handler) GetFilmSpecies(ctx context.Context, req *connect.Request[relationsv1.GetFilmRelationsRequest]) (*connect.Response[relationsv1.GetSpeciesResponse], error)
- func (h *Handler) GetFilmStarships(ctx context.Context, req *connect.Request[relationsv1.GetFilmRelationsRequest]) (*connect.Response[relationsv1.GetStarshipsResponse], error)
- func (h *Handler) GetFilmVehicles(ctx context.Context, req *connect.Request[relationsv1.GetFilmRelationsRequest]) (*connect.Response[relationsv1.GetVehiclesResponse], error)
- func (h *Handler) GetFilms(_ context.Context, req *connect.Request[filmv1.GetFilmsRequest]) (*connect.Response[filmv1.GetFilmsResponse], error)
- func (h *Handler) GetPeople(_ context.Context, req *connect.Request[personv1.GetPeopleRequest]) (*connect.Response[personv1.GetPeopleResponse], error)
- func (h *Handler) GetPersonFilms(ctx context.Context, ...) (*connect.Response[relationsv1.GetFilmsResponse], error)
- func (h *Handler) GetPersonHomeworld(ctx context.Context, ...) (*connect.Response[relationsv1.GetHomeworldResponse], error)
- func (h *Handler) GetPersonSpecies(ctx context.Context, ...) (*connect.Response[relationsv1.GetSpeciesResponse], error)
- func (h *Handler) GetPersonStarships(ctx context.Context, ...) (*connect.Response[relationsv1.GetStarshipsResponse], error)
- func (h *Handler) GetPersonVehicles(ctx context.Context, ...) (*connect.Response[relationsv1.GetVehiclesResponse], error)
- func (h *Handler) GetPlanetFilms(ctx context.Context, ...) (*connect.Response[relationsv1.GetFilmsResponse], error)
- func (h *Handler) GetPlanetResidents(ctx context.Context, ...) (*connect.Response[relationsv1.GetResidentsResponse], error)
- func (h *Handler) GetPlanets(_ context.Context, req *connect.Request[planetv1.GetPlanetsRequest]) (*connect.Response[planetv1.GetPlanetsResponse], error)
- func (h *Handler) GetSpecies(_ context.Context, req *connect.Request[speciesv1.GetSpeciesRequest]) (*connect.Response[speciesv1.GetSpeciesResponse], error)
- func (h *Handler) GetSpeciesCharacters(ctx context.Context, ...) (*connect.Response[relationsv1.GetCharactersResponse], error)
- func (h *Handler) GetSpeciesFilms(ctx context.Context, ...) (*connect.Response[relationsv1.GetFilmsResponse], error)
- func (h *Handler) GetSpeciesHomeworld(ctx context.Context, ...) (*connect.Response[relationsv1.GetHomeworldResponse], error)
- func (h *Handler) GetStarshipFilms(ctx context.Context, ...) (*connect.Response[relationsv1.GetFilmsResponse], error)
- func (h *Handler) GetStarshipPilots(ctx context.Context, ...) (*connect.Response[relationsv1.GetPilotsResponse], error)
- func (h *Handler) GetStarships(_ context.Context, req *connect.Request[starshipv1.GetStarshipsRequest]) (*connect.Response[starshipv1.GetStarshipsResponse], error)
- func (h *Handler) GetVehicleFilms(ctx context.Context, ...) (*connect.Response[relationsv1.GetFilmsResponse], error)
- func (h *Handler) GetVehiclePilots(ctx context.Context, ...) (*connect.Response[relationsv1.GetPilotsResponse], error)
- func (h *Handler) GetVehicles(_ context.Context, req *connect.Request[vehiclev1.GetVehiclesRequest]) (*connect.Response[vehiclev1.GetVehiclesResponse], error)
- func (h *Handler) ListFilms(_ context.Context, req *connect.Request[filmv1.ListFilmsRequest]) (*connect.Response[filmv1.ListFilmsResponse], error)
- func (h *Handler) ListPeople(_ context.Context, req *connect.Request[personv1.ListPeopleRequest]) (*connect.Response[personv1.ListPeopleResponse], error)
- func (h *Handler) ListPlanets(_ context.Context, req *connect.Request[planetv1.ListPlanetsRequest]) (*connect.Response[planetv1.ListPlanetsResponse], error)
- func (h *Handler) ListSpecies(_ context.Context, req *connect.Request[speciesv1.ListSpeciesRequest]) (*connect.Response[speciesv1.ListSpeciesResponse], error)
- func (h *Handler) ListStarships(_ context.Context, req *connect.Request[starshipv1.ListStarshipsRequest]) (*connect.Response[starshipv1.ListStarshipsResponse], error)
- func (h *Handler) ListVehicles(_ context.Context, req *connect.Request[vehiclev1.ListVehiclesRequest]) (*connect.Response[vehiclev1.ListVehiclesResponse], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { filmv1connect.UnimplementedFilmServiceHandler personv1connect.UnimplementedPersonServiceHandler starshipv1connect.UnimplementedStarshipServiceHandler vehiclev1connect.UnimplementedVehicleServiceHandler speciesv1connect.UnimplementedSpeciesServiceHandler planetv1connect.UnimplementedPlanetServiceHandler relationsv1connect.UnimplementedFilmResolverServiceHandler relationsv1connect.UnimplementedPersonResolverServiceHandler relationsv1connect.UnimplementedPlanetResolverServiceHandler relationsv1connect.UnimplementedSpeciesResolverServiceHandler relationsv1connect.UnimplementedStarshipResolverServiceHandler relationsv1connect.UnimplementedVehicleResolverServiceHandler }
Handler implements the Star Wars API.
For performance, it uses an in-memory snapshot of the data (e.g. instead of sending queries to swapi.dev). Run "go generate" for this package to re-generate the snapshot.
func NewHandler ¶
func NewHandler() *Handler
NewHandler returns a new handler that serves the Star Wars API.
func (*Handler) GetFilmCharacters ¶
func (h *Handler) GetFilmCharacters(ctx context.Context, req *connect.Request[relationsv1.GetFilmRelationsRequest]) (*connect.Response[relationsv1.GetCharactersResponse], error)
GetFilmCharacters implements the GetFilmCharacters RPC of the PersonResolverService.
func (*Handler) GetFilmPlanets ¶
func (h *Handler) GetFilmPlanets(ctx context.Context, req *connect.Request[relationsv1.GetFilmRelationsRequest]) (*connect.Response[relationsv1.GetPlanetsResponse], error)
GetFilmPlanets implements the GetFilmPlanets RPC of the PlanetResolverService.
func (*Handler) GetFilmSpecies ¶
func (h *Handler) GetFilmSpecies(ctx context.Context, req *connect.Request[relationsv1.GetFilmRelationsRequest]) (*connect.Response[relationsv1.GetSpeciesResponse], error)
GetFilmSpecies implements the GetFilmSpecies RPC of the SpeciesResolverService.
func (*Handler) GetFilmStarships ¶
func (h *Handler) GetFilmStarships(ctx context.Context, req *connect.Request[relationsv1.GetFilmRelationsRequest]) (*connect.Response[relationsv1.GetStarshipsResponse], error)
GetFilmStarships implements the GetFilmStarships RPC of the StarshipResolverService.
func (*Handler) GetFilmVehicles ¶
func (h *Handler) GetFilmVehicles(ctx context.Context, req *connect.Request[relationsv1.GetFilmRelationsRequest]) (*connect.Response[relationsv1.GetVehiclesResponse], error)
GetFilmVehicles implements the GetFilmVehicles RPC of the VehicleResolverService.
func (*Handler) GetFilms ¶
func (h *Handler) GetFilms(_ context.Context, req *connect.Request[filmv1.GetFilmsRequest]) (*connect.Response[filmv1.GetFilmsResponse], error)
GetFilms implements the GetFilms RPC of the FilmService.
func (*Handler) GetPeople ¶
func (h *Handler) GetPeople(_ context.Context, req *connect.Request[personv1.GetPeopleRequest]) (*connect.Response[personv1.GetPeopleResponse], error)
GetPeople implements the GetPeople RPC of the PersonService.
func (*Handler) GetPersonFilms ¶
func (h *Handler) GetPersonFilms(ctx context.Context, req *connect.Request[relationsv1.GetPersonRelationsRequest]) (*connect.Response[relationsv1.GetFilmsResponse], error)
GetPersonFilms implements the GetPersonFilms RPC of the FilmResolverService.
func (*Handler) GetPersonHomeworld ¶
func (h *Handler) GetPersonHomeworld(ctx context.Context, req *connect.Request[relationsv1.GetPersonRelationRequest]) (*connect.Response[relationsv1.GetHomeworldResponse], error)
GetPersonHomeworld implements the GetPersonHomeworld RPC of the PlanetResolverService.
func (*Handler) GetPersonSpecies ¶
func (h *Handler) GetPersonSpecies(ctx context.Context, req *connect.Request[relationsv1.GetPersonRelationsRequest]) (*connect.Response[relationsv1.GetSpeciesResponse], error)
GetPersonSpecies implements the GetPersonSpecies RPC of the SpeciesResolverService.
func (*Handler) GetPersonStarships ¶
func (h *Handler) GetPersonStarships(ctx context.Context, req *connect.Request[relationsv1.GetPersonRelationsRequest]) (*connect.Response[relationsv1.GetStarshipsResponse], error)
GetPersonStarships implements the GetPersonStarships RPC of the StarshipResolverService.
func (*Handler) GetPersonVehicles ¶
func (h *Handler) GetPersonVehicles(ctx context.Context, req *connect.Request[relationsv1.GetPersonRelationsRequest]) (*connect.Response[relationsv1.GetVehiclesResponse], error)
GetPersonVehicles implements the GetPersonVehicles RPC of the VehicleResolverService.
func (*Handler) GetPlanetFilms ¶
func (h *Handler) GetPlanetFilms(ctx context.Context, req *connect.Request[relationsv1.GetPlanetRelationsRequest]) (*connect.Response[relationsv1.GetFilmsResponse], error)
GetPlanetFilms implements the GetPlanetFilms RPC of the FilmResolverService.
func (*Handler) GetPlanetResidents ¶
func (h *Handler) GetPlanetResidents(ctx context.Context, req *connect.Request[relationsv1.GetPlanetRelationsRequest]) (*connect.Response[relationsv1.GetResidentsResponse], error)
GetPlanetResidents implements the GetPlanetResidents RPC of the PersonResolverService.
func (*Handler) GetPlanets ¶
func (h *Handler) GetPlanets(_ context.Context, req *connect.Request[planetv1.GetPlanetsRequest]) (*connect.Response[planetv1.GetPlanetsResponse], error)
GetPlanets implements the GetPlanets RPC of the PlanetService.
func (*Handler) GetSpecies ¶
func (h *Handler) GetSpecies(_ context.Context, req *connect.Request[speciesv1.GetSpeciesRequest]) (*connect.Response[speciesv1.GetSpeciesResponse], error)
GetSpecies implements the GetSpecies RPC of the SpeciesService.
func (*Handler) GetSpeciesCharacters ¶
func (h *Handler) GetSpeciesCharacters(ctx context.Context, req *connect.Request[relationsv1.GetSpeciesRelationsRequest]) (*connect.Response[relationsv1.GetCharactersResponse], error)
GetSpeciesCharacters implements the GetSpeciesCharacters RPC of the PersonResolverService.
func (*Handler) GetSpeciesFilms ¶
func (h *Handler) GetSpeciesFilms(ctx context.Context, req *connect.Request[relationsv1.GetSpeciesRelationsRequest]) (*connect.Response[relationsv1.GetFilmsResponse], error)
GetSpeciesFilms implements the GetSpeciesFilms RPC of the FilmResolverService.
func (*Handler) GetSpeciesHomeworld ¶
func (h *Handler) GetSpeciesHomeworld(ctx context.Context, req *connect.Request[relationsv1.GetSpeciesRelationRequest]) (*connect.Response[relationsv1.GetHomeworldResponse], error)
GetSpeciesHomeworld implements the GetSpeciesHomeworld RPC of the PlanetResolverService.
func (*Handler) GetStarshipFilms ¶
func (h *Handler) GetStarshipFilms(ctx context.Context, req *connect.Request[relationsv1.GetStarshipRelationsRequest]) (*connect.Response[relationsv1.GetFilmsResponse], error)
GetStarshipFilms implements the GetStarshipFilms RPC of the FilmResolverService.
func (*Handler) GetStarshipPilots ¶
func (h *Handler) GetStarshipPilots(ctx context.Context, req *connect.Request[relationsv1.GetStarshipRelationsRequest]) (*connect.Response[relationsv1.GetPilotsResponse], error)
GetStarshipPilots implements the GetStarshipPilots RPC of the PersonResolverService.
func (*Handler) GetStarships ¶
func (h *Handler) GetStarships(_ context.Context, req *connect.Request[starshipv1.GetStarshipsRequest]) (*connect.Response[starshipv1.GetStarshipsResponse], error)
GetStarships implements the GetStarships RPC of the StarshipService.
func (*Handler) GetVehicleFilms ¶
func (h *Handler) GetVehicleFilms(ctx context.Context, req *connect.Request[relationsv1.GetVehicleRelationsRequest]) (*connect.Response[relationsv1.GetFilmsResponse], error)
GetVehicleFilms implements the GetVehicleFilms RPC of the FilmResolverService.
func (*Handler) GetVehiclePilots ¶
func (h *Handler) GetVehiclePilots(ctx context.Context, req *connect.Request[relationsv1.GetVehicleRelationsRequest]) (*connect.Response[relationsv1.GetPilotsResponse], error)
GetVehiclePilots implements the GetVehiclePilots RPC of the PersonResolverService.
func (*Handler) GetVehicles ¶
func (h *Handler) GetVehicles(_ context.Context, req *connect.Request[vehiclev1.GetVehiclesRequest]) (*connect.Response[vehiclev1.GetVehiclesResponse], error)
GetVehicles implements the GetVehicles RPC of the VehicleService.
func (*Handler) ListFilms ¶
func (h *Handler) ListFilms(_ context.Context, req *connect.Request[filmv1.ListFilmsRequest]) (*connect.Response[filmv1.ListFilmsResponse], error)
ListFilms implements the ListFilms RPC of the FilmService.
func (*Handler) ListPeople ¶
func (h *Handler) ListPeople(_ context.Context, req *connect.Request[personv1.ListPeopleRequest]) (*connect.Response[personv1.ListPeopleResponse], error)
ListPeople implements the ListPeople RPC of the PersonService.
func (*Handler) ListPlanets ¶
func (h *Handler) ListPlanets(_ context.Context, req *connect.Request[planetv1.ListPlanetsRequest]) (*connect.Response[planetv1.ListPlanetsResponse], error)
ListPlanets implements the ListPlanets RPC of the PlanetService.
func (*Handler) ListSpecies ¶
func (h *Handler) ListSpecies(_ context.Context, req *connect.Request[speciesv1.ListSpeciesRequest]) (*connect.Response[speciesv1.ListSpeciesResponse], error)
ListSpecies implements the ListSpecies RPC of the SpeciesService.
func (*Handler) ListStarships ¶
func (h *Handler) ListStarships(_ context.Context, req *connect.Request[starshipv1.ListStarshipsRequest]) (*connect.Response[starshipv1.ListStarshipsResponse], error)
ListStarships implements the ListStarships RPC of the StarshipService.
func (*Handler) ListVehicles ¶
func (h *Handler) ListVehicles(_ context.Context, req *connect.Request[vehiclev1.ListVehiclesRequest]) (*connect.Response[vehiclev1.ListVehiclesResponse], error)
ListVehicles implements the ListVehicles RPC of the VehicleService.