OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / go-kit / kit / examples / shipping / routing / routing.go
1 // Package routing provides the routing domain service. It does not actually
2 // implement the routing service but merely acts as a proxy for a separate
3 // bounded context.
4 package routing
5
6 import (
7         "github.com/go-kit/kit/examples/shipping/cargo"
8 )
9
10 // Service provides access to an external routing service.
11 type Service interface {
12         // FetchRoutesForSpecification finds all possible routes that satisfy a
13         // given specification.
14         FetchRoutesForSpecification(rs cargo.RouteSpecification) []cargo.Itinerary
15 }