package inspection
import "github.com/go-kit/kit/examples/shipping/inspection"
Package inspection provides means to inspect cargos.
Index ¶
Types ¶
type EventHandler ¶
EventHandler provides means of subscribing to inspection events.
type Service ¶
type Service interface { // InspectCargo inspects cargo and send relevant notifications to // interested parties, for example if a cargo has been misdirected, or // unloaded at the final destination. InspectCargo(trackingID cargo.TrackingID) }
Service provides cargo inspection operations.
func NewService ¶
func NewService(cargoRepository cargo.Repository, handlingEventRepository cargo.HandlingEventRepository, eventHandler EventHandler) Service
NewService creates a inspection service with necessary dependencies.
Source Files ¶
- Version
- v0.2.0
- Published
- Jul 27, 2016
- Platform
- darwin/amd64
- Imports
- 1 packages
- Last checked
- 8 minutes ago –
Tools for package owners.