Documentation ¶
Index ¶
- Constants
- func IsAircraft(taglist []string) bool
- func IsBullseye(taglist []string) bool
- func IsRelevantObject(taglist []string) bool
- func NewClient(updateInterval time.Duration) *client
- type Client
- type ClientHandshake
- type FileReader
- type HostHandshake
- type TelemetryClient
- func (c *TelemetryClient) Bullseye(coalition coalitions.Coalition) (orb.Point, error)
- func (c *TelemetryClient) Run(ctx context.Context, wg *sync.WaitGroup) error
- func (c *TelemetryClient) Stream(ctx context.Context, wg *sync.WaitGroup, starts chan<- sim.Started, ...)
- func (c *TelemetryClient) Time() time.Time
Constants ¶
View Source
const ( LowLevelProtocol = "XtraLib.Stream" LowLevelProtocolVersion = "0" )
View Source
const ( HighLevelProtocol = "Tacview.RealTimeTelemetry" HighLevelProtocolVersion = "0" )
Variables ¶
This section is empty.
Functions ¶
func IsAircraft ¶
func IsBullseye ¶
func IsRelevantObject ¶
Types ¶
type ClientHandshake ¶
type ClientHandshake struct { LowLevelProtocolVersion string HighLevelProtocolVersion string Hostname string PasswordHash string }
func DecodeClientHandshake ¶
func DecodeClientHandshake(packet string) (*ClientHandshake, error)
func NewClientHandshake ¶
func NewClientHandshake(hostname string, password string) (handshake *ClientHandshake)
func (*ClientHandshake) Encode ¶
func (h *ClientHandshake) Encode() (packet string)
type FileReader ¶
type FileReader struct {
// contains filtered or unexported fields
}
func NewFileClient ¶
func NewFileClient( filePath string, updateInterval time.Duration, ) *FileReader
func (*FileReader) Bullseye ¶
func (c *FileReader) Bullseye(coalition coalitions.Coalition) (orb.Point, error)
type HostHandshake ¶
type HostHandshake struct { LowLevelProtocolVersion string HighLevelProtocolVersion string Hostname string }
func DecodeHostHandshake ¶
func DecodeHostHandshake(packet string) (HostHandshake, error)
func (*HostHandshake) Encode ¶
func (h *HostHandshake) Encode() (packet string)
type TelemetryClient ¶
type TelemetryClient struct {
// contains filtered or unexported fields
}
func NewTelemetryClient ¶
func (*TelemetryClient) Bullseye ¶
func (c *TelemetryClient) Bullseye(coalition coalitions.Coalition) (orb.Point, error)
Click to show internal directories.
Click to hide internal directories.