Codebase list golang-github-go-kit-kit / eb8486a6-f182-4772-872e-3e24b6b63e39/main examples / shipping / routing / routing.go
eb8486a6-f182-4772-872e-3e24b6b63e39/main

Tree @eb8486a6-f182-4772-872e-3e24b6b63e39/main (Download .tar.gz)

routing.go @eb8486a6-f182-4772-872e-3e24b6b63e39/main

e0f3def
 
 
 
 
4a29204
 
 
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
}