Documentation ¶
Index ¶
- type BookingRepository
- func (r BookingRepository) Find(ctx context.Context, bookingID string) (*domain.Booking, error)
- func (r BookingRepository) FindForDateRange(ctx context.Context, campsiteID string, startDate time.Time, endDate time.Time) ([]*domain.Booking, error)
- func (r BookingRepository) Insert(ctx context.Context, booking *domain.Booking) error
- func (r BookingRepository) Update(ctx context.Context, booking *domain.Booking) error
- type CampsiteRepository
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 NewBookingRepository ¶
func NewBookingRepository(db *sql.DB) BookingRepository
func (BookingRepository) FindForDateRange ¶
type CampsiteRepository ¶
type CampsiteRepository struct {
// contains filtered or unexported fields
}
func NewCampsiteRepository ¶
func NewCampsiteRepository(db *sql.DB) CampsiteRepository
Click to show internal directories.
Click to hide internal directories.