Documentation ¶
Index ¶
- func AddShowsInTheatre(shows *[]models.Show) error
- func AddUser(user *models.User) error
- func BookSelectedSeats(ticket *models.Ticket, ShowSeatIds []uint32) error
- func CreateCities(cities *[]models.City) (*[]models.City, error)
- func CreateMovies(movies *[]models.Movie) error
- func CreateScreens(screens *[]models.Screen) error
- func CreateSeats(seats *[]models.Seat) error
- func CreateTheaters(theaters *[]models.Theater) error
- func FetchShowSeats(showSeatIds []uint32) []models.ShowSeat
- func GetAllSeatsInTheater(theaterId int, screenSeats *[]models.Seat) error
- func GetCityTheatres(cityId uint32, theaters *[]models.Theater) error
- func GetMovies(movies *[]models.Movie) error
- func GetShowsForTheatre(theaterId uint32, showSeats *[]models.ShowSeat) error
- func GetTicketsForUser(emailId string, tickets *[]models.Ticket) error
- func GetTotalBookingAmount(showSeatIds []uint32) float64
- func GetUserByEmailID(email string) (models.User, error)
- func InitDB(config *config.Config)
- func ShowCities(cities *[]models.City) error
- func ShowScreens(screens *[]models.Screen) error
- func ShowTheaters(theaters *[]models.Theater) error
- func UpdateShowSeats(ticketId uint32, showSeatIds []uint32) bool
- func ValidateUserCredentials(email string, password string) (bool, error)
- type DatabaseInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddShowsInTheatre ¶
func CreateMovies ¶
func CreateScreens ¶
func CreateSeats ¶
func CreateTheaters ¶
func FetchShowSeats ¶
func GetAllSeatsInTheater ¶
func GetShowsForTheatre ¶
func GetTotalBookingAmount ¶
func ShowCities ¶
func ShowScreens ¶
func ShowTheaters ¶
func UpdateShowSeats ¶
Types ¶
type DatabaseInstance ¶
var (
DbInstance *DatabaseInstance
)
func NewDatabaseClient ¶
func NewDatabaseClient(config *config.Config) *DatabaseInstance
func (*DatabaseInstance) CreateTables ¶
func (i *DatabaseInstance) CreateTables()
func (*DatabaseInstance) Ready ¶
func (i *DatabaseInstance) Ready() bool
Click to show internal directories.
Click to hide internal directories.