Codebase list golang-github-go-kit-kit / f9d8373b-9935-4125-b2b2-694ccabcf82b/v0.3.0 examples / shipping / routing / routing.go
f9d8373b-9935-4125-b2b2-694ccabcf82b/v0.3.0

Tree @f9d8373b-9935-4125-b2b2-694ccabcf82b/v0.3.0 (Download .tar.gz)

routing.go @f9d8373b-9935-4125-b2b2-694ccabcf82b/v0.3.0

e0f3def
 
 
 
 
 
 
 
 
 
 
 
 
// 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.
package routing

import "github.com/go-kit/kit/examples/shipping/cargo"

// Service provides access to an external routing service.
type Service interface {
	// FetchRoutesForSpecification finds all possible routes that satisfy a
	// given specification.
	FetchRoutesForSpecification(rs cargo.RouteSpecification) []cargo.Itinerary
}