streamer

package
v0.0.0-...-7984459 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Payload

type Payload struct {
	Update      *objects.Update
	MissionTime time.Duration
}

type Streamer

type Streamer struct {
	// contains filtered or unexported fields
}

func New

func New(
	missionServiceClient mission.MissionServiceClient,
	coalitionServiceClient coalition.CoalitionServiceClient,
	hookServiceClient hook.HookServiceClient,
) *Streamer

func (Streamer) GetBullseyes

func (s Streamer) GetBullseyes(ctx context.Context) ([]*objects.Object, error)

func (*Streamer) GetCurrentTime

func (s *Streamer) GetCurrentTime(ctx context.Context) (string, error)

func (*Streamer) GetGlobalObject

func (s *Streamer) GetGlobalObject(ctx context.Context) (*objects.Object, error)

func (*Streamer) GetMissionName

func (s *Streamer) GetMissionName(ctx context.Context) (string, error)

func (*Streamer) GetStartTime

func (s *Streamer) GetStartTime(ctx context.Context) (string, error)

func (*Streamer) Stream

func (s *Streamer) Stream(ctx context.Context, updates chan<- Payload, airUpdateInterval, surfaceUpdateInterval, weaponUpdateInterval time.Duration)

Jump to

Keyboard shortcuts

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