Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidArgument = errors.New("invalid argument")
Functions ¶
Types ¶
type EventHandler ¶
type EventHandler interface {
CargoWasHandled(cargo.HandlingEvent)
}
func NewEventHandler ¶
func NewEventHandler(s inspection.Service) EventHandler
type Service ¶
type Service interface {
RegisterHandlingEvent(completed time.Time, id cargo.TrackingID, voyageNumber voyage.Number, unLocode location.UNLocode, eventType cargo.HandlingEventType) error
}
func NewInstrumentingService ¶
func NewService ¶
func NewService(r cargo.HandlingEventRepository, f cargo.HandlingEventFactory, h EventHandler) Service
Click to show internal directories.
Click to hide internal directories.