Documentation ¶
Index ¶
- type BookingService
- func (s *BookingService) CreateBooking(ctx context.Context, bookDTO *dto.CreateBookingDTO) (*dto.BookingDTO, error)
- func (s *BookingService) DeleteBooking(ctx context.Context, id uuid.UUID) error
- func (s *BookingService) GetBooking(ctx context.Context, id uuid.UUID) (*dto.BookingDTO, error)
- func (s *BookingService) ListBookings(ctx context.Context, limit, offset int) ([]*model.Booking, error)
- func (s *BookingService) UpdateBooking(ctx context.Context, booking *model.Booking) error
- type BookingServiceInterface
- type EventService
- type EventServiceInterface
- type TicketService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookingService ¶
type BookingService struct {
// contains filtered or unexported fields
}
func (*BookingService) CreateBooking ¶
func (s *BookingService) CreateBooking( ctx context.Context, bookDTO *dto.CreateBookingDTO, ) (*dto.BookingDTO, error)
func (*BookingService) DeleteBooking ¶
func (*BookingService) GetBooking ¶
func (s *BookingService) GetBooking(ctx context.Context, id uuid.UUID) (*dto.BookingDTO, error)
func (*BookingService) ListBookings ¶
func (*BookingService) UpdateBooking ¶
type BookingServiceInterface ¶
type BookingServiceInterface interface { CreateBooking(ctx context.Context, booking *dto.CreateBookingDTO) (*dto.BookingDTO, error) GetBooking(ctx context.Context, id uuid.UUID) (*dto.BookingDTO, error) DeleteBooking(ctx context.Context, id uuid.UUID) error }
func NewBookingService ¶
func NewBookingService( bookingRepo repository.BookingRepositoryInterface, logger logger.Logger, redis *redis.Client, ) BookingServiceInterface
type EventService ¶
type EventService struct {
// contains filtered or unexported fields
}
func (*EventService) CreateEvent ¶
func (s *EventService) CreateEvent( ctx context.Context, eventDTO *dto.CreateEventDTO, ) (*dto.EventDTO, error)
func (*EventService) DeleteEvent ¶
func (*EventService) GetEventByID ¶
type EventServiceInterface ¶
type EventServiceInterface interface { CreateEvent(ctx context.Context, eventDTO *dto.CreateEventDTO) (*dto.EventDTO, error) GetEventByID(ctx context.Context, id uuid.UUID) (*dto.EventDTO, error) DeleteEvent(ctx context.Context, id uuid.UUID) error }
func NewEventService ¶
func NewEventService( eventRepo repository.EventRepositoryInterface, logger logger.Logger, redis *redis.Client, ) EventServiceInterface
type TicketService ¶
type TicketService struct {
// contains filtered or unexported fields
}
func NewTicketService ¶
func NewTicketService( bookingRepo repository.BookingRepositoryInterface, eventRepo repository.EventRepositoryInterface, redis *redis.Client, ) *TicketService
func (*TicketService) CleanupExpiredHolds ¶
func (s *TicketService) CleanupExpiredHolds(ctx context.Context) error
func (*TicketService) HoldTickets ¶
func (*TicketService) ReleaseHold ¶
Click to show internal directories.
Click to hide internal directories.