Package routing provides the routing domain service. It does not actually
implement the routing service but merely acts as a proxy for a separate
bounded context.
type Service interface {
// FetchRoutesForSpecification finds all possible routes that satisfy a// given specification.
FetchRoutesForSpecification(rs cargo2.RouteSpecification) []cargo2.Itinerary
}
Service provides access to an external routing service.