client

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

client contains clients to stream ACMI data from a local or remote source.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Run(context.Context, *sync.WaitGroup) error
	Bullseye(coalitions.Coalition) (orb.Point, error)
	Time() time.Time
	Close() error
}

func NewFileClient

func NewFileClient(
	path string,
	coalition coalitions.Coalition,
	updates chan<- sim.Updated,
	fades chan<- sim.Faded,
	updateInterval time.Duration,
) (Client, error)

func NewTelemetryClient

func NewTelemetryClient(
	address,
	clientHostname,
	password string,
	coalition coalitions.Coalition,
	updates chan<- sim.Updated,
	fades chan<- sim.Faded,
	updateInterval time.Duration,
) (Client, error)

Jump to

Keyboard shortcuts

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