Codebase list golang-github-go-kit-kit / dff50435-7a33-4f0c-bbdc-f455eb10d80a/v0.5.0 examples / shipping / routing / routing.go
dff50435-7a33-4f0c-bbdc-f455eb10d80a/v0.5.0

Tree @dff50435-7a33-4f0c-bbdc-f455eb10d80a/v0.5.0 (Download .tar.gz)

routing.go @dff50435-7a33-4f0c-bbdc-f455eb10d80a/v0.5.0raw · history · blame

// 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
}