Documentation
¶
Index ¶
- func CoTChatToEntity(cotXML []byte, controllerName string, trackerID string) (*pb.Entity, error)
- func CoTToEntity(cotXML []byte, controllerName string, trackerID string) (*pb.Entity, error)
- func EntityDeleteCoT(entity *pb.Entity) ([]byte, error)
- func EntityToChatCoT(entity *pb.Entity) ([]byte, error)
- func EntityToCoT(entity *pb.Entity) ([]byte, error)
- func IsChatCoT(data string) bool
- func SetControllerOrigin(entity *pb.Entity, origin string)
- type ChatDetail
- type ChatGroup
- type Contact
- type Detail
- type Event
- type ForceDelete
- type Group
- type Link
- type Milsym
- type Point
- type Remarks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoTChatToEntity ¶ added in v0.0.20
CoTChatToEntity converts a GeoChat CoT XML event to a Hydris chat entity.
func CoTToEntity ¶
CoTToEntity converts a CoT XML event to a Hydris entity
func EntityDeleteCoT ¶
EntityDeleteCoT generates a t-x-d-d CoT event that tells TAK clients to remove the entity from the map.
func EntityToChatCoT ¶ added in v0.0.20
EntityToChatCoT converts a Hydris chat entity to a GeoChat CoT XML event.
func EntityToCoT ¶
EntityToCoT converts a Hydris entity to a CoT XML event.
func IsChatCoT ¶ added in v0.0.20
IsChatCoT returns true if the CoT XML data contains a GeoChat message.
func SetControllerOrigin ¶ added in v0.0.20
SetControllerOrigin sets controller.origin on an entity, used by CoTToEntity.
Types ¶
type ChatDetail ¶ added in v0.0.20
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"`
Chat *ChatDetail `xml:"__chat,omitempty"`
Remarks *Remarks `xml:"remarks,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 ¶
Click to show internal directories.
Click to hide internal directories.