Documentation ¶
Index ¶
- Variables
- func AsStartOfDayUTC(t time.Time) time.Time
- func DeleteBookings(db *sql.DB) error
- func DeleteCampsites(db *sql.DB) error
- func FindBooking(db *sql.DB, bookingID string) (*domain.Booking, error)
- func InsertBooking(db *sql.DB, b *domain.Booking) error
- func InsertCampsite(db *sql.DB, c *domain.Campsite) error
- func NewBooking(campsiteID string) (*domain.Booking, error)
- func NewBookingWithAddDays(campsiteID string, startAddDays int, endAddDays int) (*domain.Booking, error)
- func NewCampsite() (*domain.Campsite, error)
- func NewDB(c *postgres.PostgresContainer) (*sql.DB, error)
- func NewPostgresContainer() (*postgres.PostgresContainer, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBeginTx = errors.Wrap(errors.ErrUnknown, "unexpected begin transaction error") ErrQuery = errors.Wrap(errors.ErrUnknown, "unexpected query error") ErrExec = errors.Wrap(errors.ErrUnknown, "unexpected exec error") ErrRow = errors.Wrap(errors.ErrUnknown, "unexpected rows error") ErrCommitTx = errors.Wrap(errors.ErrUnknown, "unexpected commit transaction error") )
Functions ¶
func DeleteBookings ¶
func DeleteCampsites ¶
func NewBookingWithAddDays ¶
func NewCampsite ¶
func NewPostgresContainer ¶
func NewPostgresContainer() (*postgres.PostgresContainer, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.