import "code.pfad.fr/buchungssystem/internal/app"
func AuthenticatedRouter(baseHandler internal.Handler, assetsFS fs.FS, notification notification) func(r chi.Router)
MethodSpoofing allows to spoof PUT, PATCH and DELETE methods from HTML forms, using the _method field.
func NewCronTasks(db *database.Queries, queue email.Queue, assetsFS fs.FS) map[string]func() error
func OwnBookingRouter(baseHandler internal.Handler, assetsFS fs.FS, notification notification) func(r chi.Router)
func Router(cookieKey []byte, oidc auth.OIDC, assetsFS fs.FS, baseHandler internal.Handler) (*chi.Mux, error)
func RunPeriodically(ctx context.Context, delay time.Duration, tasks map[string]func() error) <-chan struct{}
type BillingInfo struct {
Kind string
Name string
Address1 string
Address2 string
PostalCode string
City string
Country string
}
type Offer struct {
Days int
People int
Amount int
ExtraAmount int
TotalAmount int
Lines []offerLine
ExtraLines []offerLine
ExtraAvailables []offerLine
Charges []database.Charge
}
func ComputeOffer(ctx context.Context, db *database.Queries, booking database.Booking) (Offer, error)
billing.go booking_billing.go booking_edit.go booking_list.go booking_new.go booking_offer.go cron.go cron_booking_expiration.go cron_cancelled_booking_anonymisation.go cron_past_booking_anonymisation.go dashboard.go helpers.go own_booking.go own_new.go own_new_overday.go pagination.go router.go