handler

package
v0.0.0-...-ab8551a Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 (*CinemaServiceHandler) GetCinemasCities

func (h *CinemaServiceHandler) GetCinemasCities(ctx context.Context,
	_ *emptypb.Empty) (cities *cinema_service.Cities, err error)

func (*CinemaServiceHandler) GetCinemasInCity

func (*CinemaServiceHandler) GetHallConfiguration

func (*CinemaServiceHandler) GetHalls

func (*CinemaServiceHandler) GetMoviesScreenings

func (*CinemaServiceHandler) GetMoviesScreeningsInCities

func (*CinemaServiceHandler) GetScreening

func (*CinemaServiceHandler) GetScreenings

func (*CinemaServiceHandler) GetScreeningsInCity

Jump to

Keyboard shortcuts

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