Versions in this module Expand all Collapse all v1 v1.0.0 Aug 1, 2017 Changes in this version + var ErrInvalidArgument = errors.New("invalid argument") + func MakeHandler(hs Service, logger kitlog.Logger) http.Handler + type EventHandler interface + CargoWasHandled func(cargo.HandlingEvent) + func NewEventHandler(s inspection.Service) EventHandler + type Service interface + RegisterHandlingEvent func(completed time.Time, id cargo.TrackingID, voyageNumber voyage.Number, ...) error + func NewInstrumentingService(counter metrics.Counter, latency metrics.Histogram, s Service) Service + func NewLoggingService(logger log.Logger, s Service) Service + func NewService(r cargo.HandlingEventRepository, f cargo.HandlingEventFactory, h EventHandler) Service