Documentation ¶
Index ¶
- func NewPostgreDB(cfg *repository.DBConfig) (*sqlx.DB, error)
- type CinemaRepository
- func (r *CinemaRepository) GetAllMoviesScreenings(ctx context.Context, startPeriod, endPeriod time.Time) (screenings []models.MoviesScreenings, err error)
- func (r *CinemaRepository) GetCinema(ctx context.Context, id int32) (cinema models.Cinema, err error)
- func (r *CinemaRepository) GetCinemasCities(ctx context.Context) (cities []models.City, err error)
- func (r *CinemaRepository) GetCinemasInCity(ctx context.Context, id int32) (cinemas []models.Cinema, err error)
- func (r *CinemaRepository) GetCityScreenings(ctx context.Context, cityID, movieID int32, startPeriod, endPeriod time.Time) (screenings []models.CityScreening, err error)
- func (r *CinemaRepository) GetHallConfiguraion(ctx context.Context, id int32) (places []models.Place, err error)
- func (r *CinemaRepository) GetHalls(ctx context.Context, ids []int32) (halls []models.Hall, err error)
- func (r *CinemaRepository) GetMoviesScreenings(ctx context.Context, cinemaID int32, startPeriod, endPeriod time.Time) (screenings []models.MoviesScreenings, err error)
- func (r *CinemaRepository) GetMoviesScreeningsInCities(ctx context.Context, citiesIDs []int32, startPeriod, endPeriod time.Time) (screenings []models.MoviesScreenings, err error)
- func (r *CinemaRepository) GetScreening(ctx context.Context, id int64) (screening models.Screening, err error)
- func (r *CinemaRepository) GetScreenings(ctx context.Context, cinemaID, movieID int32, startPeriod, endPeriod time.Time) (screenings []models.Screening, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPostgreDB ¶
func NewPostgreDB(cfg *repository.DBConfig) (*sqlx.DB, error)
Types ¶
type CinemaRepository ¶
type CinemaRepository struct {
// contains filtered or unexported fields
}
func NewCinemaRepository ¶
func NewCinemaRepository(logger *logrus.Logger, db *sqlx.DB) *CinemaRepository
func (*CinemaRepository) GetAllMoviesScreenings ¶
func (r *CinemaRepository) GetAllMoviesScreenings(ctx context.Context, startPeriod, endPeriod time.Time) (screenings []models.MoviesScreenings, err error)
func (*CinemaRepository) GetCinemasCities ¶
func (*CinemaRepository) GetCinemasInCity ¶
func (*CinemaRepository) GetCityScreenings ¶
func (r *CinemaRepository) GetCityScreenings(ctx context.Context, cityID, movieID int32, startPeriod, endPeriod time.Time) (screenings []models.CityScreening, err error)
func (*CinemaRepository) GetHallConfiguraion ¶
func (*CinemaRepository) GetMoviesScreenings ¶
func (r *CinemaRepository) GetMoviesScreenings(ctx context.Context, cinemaID int32, startPeriod, endPeriod time.Time) (screenings []models.MoviesScreenings, err error)
func (*CinemaRepository) GetMoviesScreeningsInCities ¶
func (r *CinemaRepository) GetMoviesScreeningsInCities(ctx context.Context, citiesIDs []int32, startPeriod, endPeriod time.Time) (screenings []models.MoviesScreenings, err error)
func (*CinemaRepository) GetScreening ¶
Click to show internal directories.
Click to hide internal directories.