api

package
v0.0.0-...-92f7fd9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoCompleteHandler

func AutoCompleteHandler(database *sql.DB) http.HandlerFunc

func FetchHandler

func FetchHandler(database *sql.DB) http.HandlerFunc

func FilesExaminerHandler

func FilesExaminerHandler(db *sql.DB) http.HandlerFunc

func GetLocationCoordinates

func GetLocationCoordinates(location db.Location) (float64, float64, error)

func GetMaerskLocations

func GetMaerskLocations(database *sql.DB, unLoCodes []string) ([]models.MaerskLocation, error)

func GetMaerskPointToPoint

func GetMaerskPointToPoint(params FetchParams, locations []db.Location) (models.MaerskPointToPoint, error)

func GetTrackedVesselsHandler

func GetTrackedVesselsHandler(database *sql.DB) http.HandlerFunc

func GetVesselLastKnownPosition

func GetVesselLastKnownPosition(database *sql.DB) http.HandlerFunc

func GetVesselRoute

func GetVesselRoute(database *sql.DB) http.HandlerFunc

func GetVesselRouteGeoJSON

func GetVesselRouteGeoJSON(database *sql.DB) http.HandlerFunc

Types

type FetchParams

type FetchParams struct {
	OriginPortUnLoCode      string
	DestinationPortUnLoCode string
	Destination             string
	Origin                  string
	DepartureDate           models.CustomTime
}

type NominatimResponse

type NominatimResponse struct {
	Lat string `json:"lat"`
	Lon string `json:"lon"`
}

type VesselMessageSummary

type VesselMessageSummary struct {
	EventTypes string
	MMSIs      float64
	TimeStamp  models.CustomTime
}

type VesselsMessagesSummary

type VesselsMessagesSummary struct {
	EventTypes []string
	MMSIs      []float64
	LastEvent  models.CustomTime
	Count      int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL