Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kind ¶
type Kind int
The kind of controll message that can be exchanged between satellites and the ground-station.
type SpaceMessage ¶
type SpaceMessage struct { Kind Kind `json:"kind"` SenderID int Location Location `json:"loc"` OzoneLevel float64 `json:"ol"` Timestamp time.Time }
func (*SpaceMessage) MarshalSpaceMessage ¶
func (m *SpaceMessage) MarshalSpaceMessage() ([]byte, error)
func (*SpaceMessage) UnmarshalSpaceMessage ¶
func (m *SpaceMessage) UnmarshalSpaceMessage(data []byte) error
type SpaceMessageMarshaler ¶
Messages are really just marshalled into JSON when transmitted over the network.
type SpaceMessageUnmarshaler ¶
Click to show internal directories.
Click to hide internal directories.