package
0.0.0-20211116124531-e18c82edc2f9
Repository: https://github.com/go-kit/examples.git
Documentation: pkg.go.dev
# Functions
DeriveDeliveryFrom creates a new delivery snapshot based on the complete handling history of a cargo, as well as its route specification and itinerary.
New creates a new, unrouted cargo.
NewLeg creates a new itinerary leg.
NextTrackingID generates a new tracking ID.
# Constants
Valid handling event types.
Valid transport statuses.
Valid handling event types.
Valid transport statuses.
Valid handling event types.
Valid routing statuses.
Valid handling event types.
Valid transport statuses.
Valid routing statuses.
Valid transport statuses.
Valid handling event types.
Valid routing statuses.
Valid transport statuses.
Valid handling event types.
# Variables
ErrUnknown is used when a cargo could not be found.
# Structs
Cargo is the central class in the domain model.
Delivery is the actual transportation of the cargo, as opposed to the customer requirement (RouteSpecification) and the plan (Itinerary).
HandlingActivity represents how and where a cargo can be handled, and can be used to express predictions about what is expected to happen to a cargo in the future.
HandlingEvent is used to register the event when, for instance, a cargo is unloaded from a carrier at a some location at a given time.
HandlingEventFactory creates handling events.
HandlingHistory is the handling history of a cargo.
Itinerary specifies steps required to transport a cargo from its origin to destination.
Leg describes the transportation between two locations on a voyage.
RouteSpecification Contains information about a route: its origin, destination and arrival deadline.
# Interfaces
HandlingEventRepository provides access a handling event store.
Repository provides access to a cargo store.
# Type aliases
HandlingEventType describes type of a handling event.
RoutingStatus describes status of cargo routing.
TrackingID uniquely identifies a particular cargo.
TransportStatus describes status of cargo transportation.