cot

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoTToEntity

func CoTToEntity(cotXML []byte, controllerName string, trackerID string) (*pb.Entity, error)

CoTToEntity converts a CoT XML event to a Hydris entity

func EntityDeleteCoT

func EntityDeleteCoT(entity *pb.Entity) ([]byte, error)

EntityDeleteCoT generates a t-x-d-d CoT event that tells TAK clients to remove the entity from the map.

func EntityToCoT

func EntityToCoT(entity *pb.Entity) ([]byte, error)

EntityToCoT converts a Hydris entity to a CoT XML event.

Types

type Contact

type Contact struct {
	Callsign string `xml:"callsign,attr"`
}

type Detail

type Detail struct {
	Contact     Contact      `xml:"contact"`
	Group       Group        `xml:"group"`
	Milsym      *Milsym      `xml:"__milsym,omitempty"`
	Link        *Link        `xml:"link,omitempty"`
	ForceDelete *ForceDelete `xml:"__forcedelete,omitempty"`
}

type Event

type Event struct {
	XMLName xml.Name `xml:"event"`
	Version string   `xml:"version,attr"`
	Type    string   `xml:"type,attr"`
	How     string   `xml:"how,attr"`
	UID     string   `xml:"uid,attr"`
	Time    string   `xml:"time,attr"`
	Start   string   `xml:"start,attr"`
	Stale   string   `xml:"stale,attr"`
	Point   Point    `xml:"point"`
	Detail  Detail   `xml:"detail"`
}

CoT XML message structures

type ForceDelete

type ForceDelete struct {
	XMLName xml.Name `xml:"__forcedelete"`
}

type Group

type Group struct {
	Name string `xml:"name,attr"`
	Role string `xml:"role,attr"`
}
type Link struct {
	UID      string `xml:"uid,attr"`
	Type     string `xml:"type,attr,omitempty"`
	Relation string `xml:"relation,attr"`
}

type Milsym

type Milsym struct {
	ID string `xml:"id,attr"`
}

type Point

type Point struct {
	Lat float64 `xml:"lat,attr"`
	Lon float64 `xml:"lon,attr"`
	Hae float64 `xml:"hae,attr"`
	CE  float64 `xml:"ce,attr"`
	LE  float64 `xml:"le,attr"`
}

Jump to

Keyboard shortcuts

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