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(ts Service, logger kitlog.Logger) http.Handler + type Cargo struct + ArrivalDeadline time.Time + Destination string + ETA time.Time + Events []Event + NextExpectedActivity string + Origin string + StatusText string + TrackingID string + type Event struct + Description string + Expected bool + type Leg struct + From string + LoadTime time.Time + To string + UnloadTime time.Time + VoyageNumber string + type Service interface + Track func(id string) (Cargo, error) + func NewInstrumentingService(counter metrics.Counter, latency metrics.Histogram, s Service) Service + func NewLoggingService(logger log.Logger, s Service) Service + func NewService(cargos cargo.Repository, events cargo.HandlingEventRepository) Service