validator

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(validators []domain.BookingValidator, booking *domain.Booking) error

Types

type BookingAllowedStartDate

type BookingAllowedStartDate struct{}

func (BookingAllowedStartDate) Validate

type BookingMaximumStay

type BookingMaximumStay struct{}

func (BookingMaximumStay) Validate

func (v BookingMaximumStay) Validate(b *domain.Booking) error

type BookingStartDateBeforeEndDate

type BookingStartDateBeforeEndDate struct{}

func (BookingStartDateBeforeEndDate) Validate

type ErrBookingAllowedStartDate

type ErrBookingAllowedStartDate struct{}

func (ErrBookingAllowedStartDate) Error

type ErrBookingMaximumStay

type ErrBookingMaximumStay struct{}

func (ErrBookingMaximumStay) Error

func (e ErrBookingMaximumStay) Error() string

type ErrBookingStartDateBeforeEndDate

type ErrBookingStartDateBeforeEndDate struct{}

func (ErrBookingStartDateBeforeEndDate) Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL