message

package
v0.0.0-...-9b5a97f Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataMessage

type DataMessage struct {
	Type      MessageType  `json:"type"`
	StationId uint64       `json:"station_id"`
	Samples   []DataSample `json:"samples"`
}

func NewDataMessage

func NewDataMessage(stationId uint64, samples []DataSample) DataMessage

type DataSample

type DataSample struct {
	SatelliteId uint32 `json:"satellite_id"`
	Timestamp   uint64 `json:"timestamp"`
	Data        string `json:"data"`
}

type MessageType

type MessageType int
const (
	DataMessageType MessageType = iota
	NextWindowMessageType
	UpdateTleMessageType
	PipelineMessageType
)

type NextWindowMessage

type NextWindowMessage struct {
	Type        MessageType `json:"type"`
	StationId   uint64      `json:"station_id"`
	SatelliteId uint64      `json:"satellite_id"`
	Start       time.Time   `json:"start"`
	End         time.Time   `json:"end"`
}

func NewNextWindowMessage

func NewNextWindowMessage(stationId, satelliteId uint64, start, end time.Time) NextWindowMessage

type PipelineMessage

type PipelineMessage struct {
	Type        MessageType `json:"type"`
	SatelliteId uint64      `json:"satellite_id"`
	Path        string      `json:"path"`
}

func NewPipelineMessage

func NewPipelineMessage(satelliteId uint64, path string) PipelineMessage

type UpdateTleMessage

type UpdateTleMessage struct {
	Type        MessageType `json:"type"`
	SatelliteId uint64      `json:"satellite_id"`
	Tle         string      `json:"tle"`
}

func NewUpdateTleMessage

func NewUpdateTleMessage(satelliteId uint64, tle string) UpdateTleMessage

Jump to

Keyboard shortcuts

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