Documentation ¶
Index ¶
- type CinemaRepository
- type CinemaServiceHandler
- func (h *CinemaServiceHandler) GetCinema(ctx context.Context, in *cinema_service.GetCinemaRequest) (cinema *cinema_service.Cinema, err error)
- func (h *CinemaServiceHandler) GetCinemasCities(ctx context.Context, _ *emptypb.Empty) (cities *cinema_service.Cities, err error)
- func (h *CinemaServiceHandler) GetCinemasInCity(ctx context.Context, in *cinema_service.GetCinemasInCityRequest) (cinemas *cinema_service.Cinemas, err error)
- func (h *CinemaServiceHandler) GetHallConfiguration(ctx context.Context, in *cinema_service.GetHallConfigurationRequest) (configuration *cinema_service.HallConfiguration, err error)
- func (h *CinemaServiceHandler) GetHalls(ctx context.Context, in *cinema_service.GetHallsRequest) (halls *cinema_service.Halls, err error)
- func (h *CinemaServiceHandler) GetMoviesScreenings(ctx context.Context, in *cinema_service.GetMoviesScreeningsRequest) (screenings *cinema_service.PreviewScreenings, err error)
- func (h *CinemaServiceHandler) GetMoviesScreeningsInCities(ctx context.Context, in *cinema_service.GetMoviesScreeningsInCitiesRequest) (screenings *cinema_service.PreviewScreenings, err error)
- func (h *CinemaServiceHandler) GetScreening(ctx context.Context, in *cinema_service.GetScreeningRequest) (screening *cinema_service.GetScreeningResponse, err error)
- func (h *CinemaServiceHandler) GetScreenings(ctx context.Context, in *cinema_service.GetScreeningsRequest) (screenings *cinema_service.Screenings, err error)
- func (h *CinemaServiceHandler) GetScreeningsInCity(ctx context.Context, in *cinema_service.GetScreeningsInCityRequest) (screenings *cinema_service.CityScreenings, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CinemaRepository ¶
type CinemaRepository interface { GetCinemasInCity(ctx context.Context, id int32) (*cinema_service.Cinemas, error) GetAllMoviesScreenings(ctx context.Context, startPeriod, endPeriod time.Time) (*cinema_service.PreviewScreenings, error) GetMoviesScreeningsInCities(ctx context.Context, citiesIds []int32, startPeriod, endPeriod time.Time) (*cinema_service.PreviewScreenings, error) GetMoviesScreenings(ctx context.Context, cinemaID int32, startPeriod, endPeriod time.Time) (*cinema_service.PreviewScreenings, error) GetScreenings(ctx context.Context, cinemaID, movieID int32, startPeriod, endPeriod time.Time) (*cinema_service.Screenings, error) GetCityScreenings(ctx context.Context, cityID, movieID int32, startPeriod, endPeriod time.Time) (*cinema_service.CityScreenings, error) GetCinemasCities(ctx context.Context) (*cinema_service.Cities, error) GetCinema(ctx context.Context, id int32) (*cinema_service.Cinema, error) GetHallConfiguraion(ctx context.Context, id int32) (*cinema_service.HallConfiguration, error) GetHalls(ctx context.Context, ids []int32) (*cinema_service.Halls, error) GetScreening(ctx context.Context, id int64) (*cinema_service.GetScreeningResponse, error) }
type CinemaServiceHandler ¶
type CinemaServiceHandler struct { cinema_service.UnimplementedCinemaServiceV1Server // contains filtered or unexported fields }
func NewCinemaServiceHandler ¶
func NewCinemaServiceHandler(s service.CinemaService) *CinemaServiceHandler
func (*CinemaServiceHandler) GetCinema ¶
func (h *CinemaServiceHandler) GetCinema(ctx context.Context, in *cinema_service.GetCinemaRequest) (cinema *cinema_service.Cinema, err error)
func (*CinemaServiceHandler) GetCinemasCities ¶
func (h *CinemaServiceHandler) GetCinemasCities(ctx context.Context, _ *emptypb.Empty) (cities *cinema_service.Cities, err error)
func (*CinemaServiceHandler) GetCinemasInCity ¶
func (h *CinemaServiceHandler) GetCinemasInCity(ctx context.Context, in *cinema_service.GetCinemasInCityRequest) (cinemas *cinema_service.Cinemas, err error)
func (*CinemaServiceHandler) GetHallConfiguration ¶
func (h *CinemaServiceHandler) GetHallConfiguration(ctx context.Context, in *cinema_service.GetHallConfigurationRequest) (configuration *cinema_service.HallConfiguration, err error)
func (*CinemaServiceHandler) GetHalls ¶
func (h *CinemaServiceHandler) GetHalls(ctx context.Context, in *cinema_service.GetHallsRequest) (halls *cinema_service.Halls, err error)
func (*CinemaServiceHandler) GetMoviesScreenings ¶
func (h *CinemaServiceHandler) GetMoviesScreenings(ctx context.Context, in *cinema_service.GetMoviesScreeningsRequest) (screenings *cinema_service.PreviewScreenings, err error)
func (*CinemaServiceHandler) GetMoviesScreeningsInCities ¶
func (h *CinemaServiceHandler) GetMoviesScreeningsInCities(ctx context.Context, in *cinema_service.GetMoviesScreeningsInCitiesRequest) (screenings *cinema_service.PreviewScreenings, err error)
func (*CinemaServiceHandler) GetScreening ¶
func (h *CinemaServiceHandler) GetScreening(ctx context.Context, in *cinema_service.GetScreeningRequest) (screening *cinema_service.GetScreeningResponse, err error)
func (*CinemaServiceHandler) GetScreenings ¶
func (h *CinemaServiceHandler) GetScreenings(ctx context.Context, in *cinema_service.GetScreeningsRequest) (screenings *cinema_service.Screenings, err error)
func (*CinemaServiceHandler) GetScreeningsInCity ¶
func (h *CinemaServiceHandler) GetScreeningsInCity(ctx context.Context, in *cinema_service.GetScreeningsInCityRequest) (screenings *cinema_service.CityScreenings, err error)
Click to show internal directories.
Click to hide internal directories.