Documentation ¶
Index ¶
- type BookingRepository
- func (r *BookingRepository) CreateBooking(ctx context.Context, booking *model.Booking) (*model.Booking, error)
- func (r *BookingRepository) DeleteBooking(ctx context.Context, id uuid.UUID) error
- func (r *BookingRepository) GetBookingByID(ctx context.Context, id uuid.UUID) (*model.Booking, error)
- func (r *BookingRepository) ListBookings(ctx context.Context, limit, offset int) ([]*model.Booking, error)
- func (r *BookingRepository) UpdateBooking(ctx context.Context, booking *model.Booking) error
- type BookingRepositoryInterface
- type EventRepository
- func (r *EventRepository) CreateEvent(ctx context.Context, event *model.Event) error
- func (r *EventRepository) DeleteEvent(ctx context.Context, id uuid.UUID) error
- func (r *EventRepository) GetEventByID(ctx context.Context, id uuid.UUID) (*model.Event, error)
- func (r *EventRepository) UpdateEvent(ctx context.Context, event *model.Event) error
- type EventRepositoryInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookingRepository ¶
type BookingRepository struct {
// contains filtered or unexported fields
}
func (*BookingRepository) CreateBooking ¶
func (*BookingRepository) DeleteBooking ¶
func (*BookingRepository) GetBookingByID ¶
func (*BookingRepository) ListBookings ¶
func (*BookingRepository) UpdateBooking ¶
type BookingRepositoryInterface ¶
type BookingRepositoryInterface interface { CreateBooking(ctx context.Context, booking *model.Booking) (*model.Booking, error) GetBookingByID(ctx context.Context, id uuid.UUID) (*model.Booking, error) UpdateBooking(ctx context.Context, booking *model.Booking) error DeleteBooking(ctx context.Context, id uuid.UUID) error ListBookings(ctx context.Context, limit, offset int) ([]*model.Booking, error) }
func NewBookingRepository ¶
func NewBookingRepository(db *sqlx.DB, logger logger.Logger) BookingRepositoryInterface
type EventRepository ¶
type EventRepository struct {
// contains filtered or unexported fields
}
func (*EventRepository) CreateEvent ¶
func (*EventRepository) DeleteEvent ¶
func (*EventRepository) GetEventByID ¶
func (*EventRepository) UpdateEvent ¶
type EventRepositoryInterface ¶
type EventRepositoryInterface interface { CreateEvent(ctx context.Context, event *model.Event) error GetEventByID(ctx context.Context, id uuid.UUID) (*model.Event, error) UpdateEvent(ctx context.Context, event *model.Event) error DeleteEvent(ctx context.Context, id uuid.UUID) error }
func NewEventRepository ¶
func NewEventRepository(db *sqlx.DB, logger logger.Logger) EventRepositoryInterface
Click to show internal directories.
Click to hide internal directories.