kit: Index | Files

package inspection

import ""

Package inspection provides means to inspect cargos.


Package Files


type EventHandler Uses

type EventHandler interface {

EventHandler provides means of subscribing to inspection events.

type Service Uses

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(id cargo.TrackingID)

Service provides cargo inspection operations.

func NewService Uses

func NewService(cargos cargo.Repository, events cargo.HandlingEventRepository, handler EventHandler) Service

NewService creates a inspection service with necessary dependencies.

Package inspection imports 1 packages (graph) and is imported by 30 packages. Updated 2017-02-04. Refresh now. Tools for package owners.