Documentation ¶
Index ¶
- type AuthController
- func (u *AuthController) Login(c *gin.Context)
- func (u *AuthController) Logout(c *gin.Context)
- func (u *AuthController) RefreshToken(c *gin.Context)
- func (u *AuthController) Register(c *gin.Context)
- func (u *AuthController) RegisterByEmail(c *gin.Context)
- func (u *AuthController) SignIn(c *gin.Context)
- func (u *AuthController) VerifyOtp(c *gin.Context)
- type ConfigController
- type ReservationController
- type SeatController
- func (s *SeatController) AllDetails(c *gin.Context)
- func (s *SeatController) DetailsByLink(c *gin.Context)
- func (s *SeatController) InfoByLink(c *gin.Context)
- func (s *SeatController) UpdateByLink(c *gin.Context)
- func (s *SeatController) UpdateToAttended(c *gin.Context)
- func (s *SeatController) UpdateToExchanged(c *gin.Context)
- type SnapController
- type TransactionController
- type UserController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthController ¶
type AuthController struct {
// contains filtered or unexported fields
}
func NewAuthController ¶
func (*AuthController) Login ¶
func (u *AuthController) Login(c *gin.Context)
func (*AuthController) Logout ¶
func (u *AuthController) Logout(c *gin.Context)
func (*AuthController) RefreshToken ¶
func (u *AuthController) RefreshToken(c *gin.Context)
func (*AuthController) Register ¶
func (u *AuthController) Register(c *gin.Context)
func (*AuthController) RegisterByEmail ¶
func (u *AuthController) RegisterByEmail(c *gin.Context)
func (*AuthController) SignIn ¶
func (u *AuthController) SignIn(c *gin.Context)
func (*AuthController) VerifyOtp ¶
func (u *AuthController) VerifyOtp(c *gin.Context)
type ConfigController ¶
type ConfigController struct {
// contains filtered or unexported fields
}
func NewConfigController ¶
func NewConfigController(config *config.AppConfig, log *util.LogUtil) *ConfigController
func (*ConfigController) CloseGate ¶
func (g *ConfigController) CloseGate(c *gin.Context)
func (*ConfigController) GetAppConfig ¶
func (g *ConfigController) GetAppConfig(c *gin.Context)
func (*ConfigController) OpenGate ¶
func (g *ConfigController) OpenGate(c *gin.Context)
func (*ConfigController) UpdateQrScanBehaviour ¶
func (g *ConfigController) UpdateQrScanBehaviour(c *gin.Context)
type ReservationController ¶
type ReservationController struct {
// contains filtered or unexported fields
}
func NewReservationController ¶
func NewReservationController(config *config.AppConfig, txDb *gorm.DB, log *util.LogUtil, reservationService *service.ReservationService, txService *service.TransactionService, seatService *service.SeatService, userService *service.UserService, tokenUtil *util.TokenUtil) *ReservationController
func (*ReservationController) GetSeatsInfo ¶
func (r *ReservationController) GetSeatsInfo(c *gin.Context)
func (*ReservationController) ReserveSeats ¶
func (r *ReservationController) ReserveSeats(c *gin.Context)
type SeatController ¶
type SeatController struct {
// contains filtered or unexported fields
}
func NewSeatController ¶
func NewSeatController(seatService *service.SeatService, txService *service.TransactionService, log *util.LogUtil) *SeatController
func (*SeatController) AllDetails ¶
func (s *SeatController) AllDetails(c *gin.Context)
func (*SeatController) DetailsByLink ¶
func (s *SeatController) DetailsByLink(c *gin.Context)
func (*SeatController) InfoByLink ¶
func (s *SeatController) InfoByLink(c *gin.Context)
func (*SeatController) UpdateByLink ¶
func (s *SeatController) UpdateByLink(c *gin.Context)
func (*SeatController) UpdateToAttended ¶
func (s *SeatController) UpdateToAttended(c *gin.Context)
func (*SeatController) UpdateToExchanged ¶
func (s *SeatController) UpdateToExchanged(c *gin.Context)
type SnapController ¶
type SnapController struct {
// contains filtered or unexported fields
}
func NewSnapController ¶
func NewSnapController(snapService *service.SnapService, snapUtil *util.SnapUtil, txService *service.TransactionService, log *util.LogUtil) *SnapController
func (*SnapController) HandleCallback ¶
func (s *SnapController) HandleCallback(c *gin.Context)
type TransactionController ¶
type TransactionController struct {
// contains filtered or unexported fields
}
func NewTransactionController ¶
func NewTransactionController(txService *service.TransactionService, userService *service.UserService, snapUtil *util.SnapUtil, log *util.LogUtil) *TransactionController
func (*TransactionController) GetNewTransactionDetails ¶
func (t *TransactionController) GetNewTransactionDetails(c *gin.Context)
func (*TransactionController) InitiateTransaction ¶
func (t *TransactionController) InitiateTransaction(c *gin.Context)
type UserController ¶
type UserController struct {
// contains filtered or unexported fields
}
func NewUserController ¶
func NewUserController(userService *service.UserService, tokenUtil *util.TokenUtil, config *config.AppConfig) *UserController
func (*UserController) CurrentUser ¶
func (u *UserController) CurrentUser(c *gin.Context)
func (*UserController) UpdateInfo ¶
func (u *UserController) UpdateInfo(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.