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(bs Service, logger kitlog.Logger) http.Handler + type Cargo struct + ArrivalDeadline time.Time + Destination string + Legs []cargo.Leg + Misrouted bool + Origin string + Routed bool + TrackingID string + type Location struct + Name string + UNLocode string + type Service interface + AssignCargoToRoute func(id cargo.TrackingID, itinerary cargo.Itinerary) error + BookNewCargo func(origin location.UNLocode, destination location.UNLocode, deadline time.Time) (cargo.TrackingID, error) + Cargos func() []Cargo + ChangeDestination func(id cargo.TrackingID, destination location.UNLocode) error + LoadCargo func(id cargo.TrackingID) (Cargo, error) + Locations func() []Location + RequestPossibleRoutesForCargo func(id cargo.TrackingID) []cargo.Itinerary + func NewInstrumentingService(counter metrics.Counter, latency metrics.Histogram, s Service) Service + func NewLoggingService(logger log.Logger, s Service) Service + func NewService(cargos cargo.Repository, locations location.Repository, ...) Service