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 ¶ added in v0.6.2
func IsBullseye ¶ added in v0.6.2
func IsRelevantObject ¶ added in v0.6.2
Types ¶
type ClientHandshake ¶ added in v0.6.2
type ClientHandshake struct { LowLevelProtocolVersion string HighLevelProtocolVersion string Hostname string PasswordHash string }
func DecodeClientHandshake ¶ added in v0.6.2
func DecodeClientHandshake(packet string) (*ClientHandshake, error)
func NewClientHandshake ¶ added in v0.6.2
func NewClientHandshake(hostname string, password string) (handshake *ClientHandshake)
func (*ClientHandshake) Encode ¶ added in v0.6.2
func (h *ClientHandshake) Encode() (packet string)
type FileReader ¶ added in v0.6.2
type FileReader struct {
// contains filtered or unexported fields
}
func NewFileClient ¶
func NewFileClient( filePath string, updateInterval time.Duration, ) *FileReader
func (*FileReader) Bullseye ¶ added in v0.6.2
func (c *FileReader) Bullseye(coalition coalitions.Coalition) (orb.Point, error)
type HostHandshake ¶ added in v0.6.2
type HostHandshake struct { LowLevelProtocolVersion string HighLevelProtocolVersion string Hostname string }
func DecodeHostHandshake ¶ added in v0.6.2
func DecodeHostHandshake(packet string) (HostHandshake, error)
func (*HostHandshake) Encode ¶ added in v0.6.2
func (h *HostHandshake) Encode() (packet string)
type TelemetryClient ¶ added in v0.6.2
type TelemetryClient struct {
// contains filtered or unexported fields
}
func NewTelemetryClient ¶
func (*TelemetryClient) Bullseye ¶ added in v0.6.2
func (c *TelemetryClient) Bullseye(coalition coalitions.Coalition) (orb.Point, error)
Click to show internal directories.
Click to hide internal directories.