Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckInCommand ¶
type CheckInCommand struct {
Plate Plate
CheckedInTime time.Time
// contains filtered or unexported fields
}
func (*CheckInCommand) Handle ¶
func (command *CheckInCommand) Handle() bool
func (*CheckInCommand) Init ¶
func (command *CheckInCommand) Init(repo_ ParkingRepo) (v *CheckInCommand)
type CheckInFailedEvent ¶
type CheckInFailedEventListener ¶
type CheckInFailedEventListener interface {
// contains filtered or unexported methods
}
type CheckedInEvent ¶
type CheckedInEventListener ¶
type CheckedInEventListener interface {
// contains filtered or unexported methods
}
type CheckedOutEvent ¶
type EventQueue ¶
type EventQueue interface {
Enqueue(event CheckedInEvent)
GetItems() list.List
}
type ParkingAgg ¶
type ParkingAgg struct {
EventQueue_ EventQueue
Id Plate
CheckInTime time.Time
LastPayTime time.Time
TotalPaid int
}
func (*ParkingAgg) HandleCheckIn ¶
func (agg *ParkingAgg) HandleCheckIn(command CheckInCommand) bool
func (*ParkingAgg) IsInPark ¶
func (agg *ParkingAgg) IsInPark() bool
type ParkingRepo ¶
type ParkingRepo interface {
FindById(id string) ParkingAgg
}
Click to show internal directories.
Click to hide internal directories.