Versions in this module Expand all Collapse all v0 v0.1.0 Jun 7, 2016 Changes in this version + var ErrInvalidArgument = errors.New("invalid argument") + func MakeHandler(ctx context.Context, 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(trackingID cargo.TrackingID, itinerary cargo.Itinerary) error + BookNewCargo func(origin location.UNLocode, destination location.UNLocode, ...) (cargo.TrackingID, error) + Cargos func() []Cargo + ChangeDestination func(trackingID cargo.TrackingID, unLocode location.UNLocode) error + LoadCargo func(trackingID cargo.TrackingID) (Cargo, error) + Locations func() []Location + RequestPossibleRoutesForCargo func(trackingID cargo.TrackingID) []cargo.Itinerary + func NewInstrumentingService(requestCount metrics.Counter, requestLatency metrics.TimeHistogram, s Service) Service + func NewLoggingService(logger log.Logger, s Service) Service + func NewService(cr cargo.Repository, lr location.Repository, her cargo.HandlingEventRepository, ...) Service