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, 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(requestCount metrics.Counter, requestLatency metrics.TimeHistogram, s Service) Service + func NewLoggingService(logger log.Logger, s Service) Service + func NewService(cargos cargo.Repository, handlingEvents cargo.HandlingEventRepository) Service