Documentation ¶
Index ¶
- func AssignCargoToRouteEndpoint(bookService booking.Service) endpoint.Endpoint
- func CargosEndpoint(bookService booking.Service) endpoint.Endpoint
- func ChangeDestinationEndpoint(bookService booking.Service) endpoint.Endpoint
- func LocationsEndpoint(bookService booking.Service) endpoint.Endpoint
- func MakeBookCargoEndpoint(bookService booking.Service) endpoint.Endpoint
- func MakeLoadCargoEndpoint(bookService booking.Service) endpoint.Endpoint
- func RegisterHandlingEventEndpoint(handlingService handling.Service) endpoint.Endpoint
- type AssignCargoToRouteRequest
- type AssignCargoToRouteResponse
- type BookCargoRequest
- type BookCargoResponse
- type CargoEndpoints
- type CargosResponse
- type ChangeDestinationRequest
- type ChangeDestinationResponse
- type LoadCargoRequest
- type LoadCargoResponse
- type LocationsRequest
- type LocationsResponse
- type RegisterHandlingEventRequest
- type RegisterHandlingEventResponse
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeBookCargoEndpoint ¶
func MakeLoadCargoEndpoint ¶
Types ¶
type AssignCargoToRouteRequest ¶
type AssignCargoToRouteRequest struct { Id shipping.TrackingID Itinerary shipping.Itinerary }
type AssignCargoToRouteResponse ¶
type AssignCargoToRouteResponse struct {
Res bool `json:"res"`
}
type BookCargoRequest ¶
type BookCargoResponse ¶
type BookCargoResponse struct {
TrackingID shipping.TrackingID `json:"tracking_id"`
}
type CargoEndpoints ¶
type CargoEndpoints struct { BookCargoEndpoint endpoint.Endpoint LoadCargoEndpoint endpoint.Endpoint AssignCargoToRouteEndpoint endpoint.Endpoint ChangeDestinationEndpoint endpoint.Endpoint CargosEndpoint endpoint.Endpoint LocationsEndpoint endpoint.Endpoint RegisterHandlingEventEndpoint endpoint.Endpoint }
type CargosResponse ¶
type ChangeDestinationRequest ¶
type ChangeDestinationRequest struct { Id shipping.TrackingID Destination shipping.UNLocode }
type ChangeDestinationResponse ¶
type ChangeDestinationResponse struct {
Res bool `json:"res"`
}
type LoadCargoRequest ¶
type LoadCargoRequest struct {
Id shipping.TrackingID
}
type LoadCargoResponse ¶
type LocationsRequest ¶
type LocationsRequest struct { }
type LocationsResponse ¶
type RegisterHandlingEventRequest ¶
type RegisterHandlingEventRequest struct { Completed time.Time Id shipping.TrackingID VoyageNumber shipping.VoyageNumber UnLocode shipping.UNLocode EventType shipping.HandlingEventType }
type RegisterHandlingEventResponse ¶
type RegisterHandlingEventResponse struct {
Res bool `json:"res"`
}
type Server ¶
type Server struct { Booking booking.Service Tracking tracking.Service Handling handling.Service Logger kitlog.Logger // contains filtered or unexported fields }
Server holds the dependencies for a HTTP server.
Click to show internal directories.
Click to hide internal directories.