command

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelBooking

type CancelBooking struct {
	BookingID string
}

type CancelBookingHandler

type CancelBookingHandler handler.Command[CancelBooking]

CancelBookingHandler is a logging decorator for the cancelBookingHandler struct.

func NewCancelBookingHandler

func NewCancelBookingHandler(bookings domain.BookingRepository) CancelBookingHandler

type CreateBooking

type CreateBooking struct {
	BookingID  string
	CampsiteID string
	Email      string
	FullName   string
	StartDate  string
	EndDate    string
}

type CreateBookingHandler

type CreateBookingHandler handler.Command[CreateBooking]

CreateBookingHandler is a logging decorator for the createBookingHandler struct.

func NewCreateBookingHandler

func NewCreateBookingHandler(
	bookings domain.BookingRepository,
	validators []domain.BookingValidator,
) CreateBookingHandler

type CreateCampsite

type CreateCampsite struct {
	CampsiteID    string
	CampsiteCode  string
	Capacity      int32
	DrinkingWater bool
	Restrooms     bool
	PicnicTable   bool
	FirePit       bool
}

type CreateCampsiteHandler

type CreateCampsiteHandler handler.Command[CreateCampsite]

CreateCampsiteHandler is a logging decorator for the createCampsiteHandler struct.

func NewCreateCampsiteHandler

func NewCreateCampsiteHandler(campsites domain.CampsiteRepository) CreateCampsiteHandler

type UpdateBooking

type UpdateBooking struct {
	BookingID  string
	CampsiteID string
	Email      string
	FullName   string
	StartDate  string
	EndDate    string
	Version    int64
}

type UpdateBookingHandler

type UpdateBookingHandler handler.Command[UpdateBooking]

UpdateBookingHandler is a logging decorator for the updateBookingHandler struct.

func NewUpdateBookingHandler

func NewUpdateBookingHandler(
	bookings domain.BookingRepository,
	validators []domain.BookingValidator,
) UpdateBookingHandler

Jump to

Keyboard shortcuts

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