Documentation
¶
Index ¶
- func Run(ctx context.Context, logger *slog.Logger, _ string) error
- func SelfToEntity(rmc nmea.RMC, controllerName string, trackerID string, config *StreamConfig) *pb.Entity
- func VesselToEntity(vessel *AISVessel, controllerName string, trackerID string, ...) *pb.Entity
- type AISVessel
- type MessageFragment
- type StreamConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelfToEntity ¶
Types ¶
type MessageFragment ¶
type MessageFragment struct {
// contains filtered or unexported fields
}
type StreamConfig ¶
type StreamConfig struct {
Host string `json:"host"`
Port int `json:"port"`
EntityExpirySeconds int `json:"entity_expiry_seconds"`
Latitude *float64 `json:"latitude"`
Longitude *float64 `json:"longitude"`
RadiusKM *float64 `json:"radius_km"`
// Self position (receiver position from GPS RMC sentences)
SelfEntityID string `json:"self_entity_id"`
SelfLabel string `json:"self_label"`
SelfSIDC string `json:"self_sidc"`
SelfAllowInvalid bool `json:"self_allow_invalid"`
}
Click to show internal directories.
Click to hide internal directories.