76 lines
2.4 KiB
Go
76 lines
2.4 KiB
Go
package protocol
|
|
|
|
type IOConfig struct {
|
|
IOType string `json:"io_type"`
|
|
Settings IOConfigSettings `json:"settings"`
|
|
}
|
|
|
|
type IOConfigSettings struct {
|
|
NTRIPCli NTRIPCliConfig `json:"ntripcli"`
|
|
}
|
|
|
|
type NTRIPCliConfig struct {
|
|
Address string `json:"address"`
|
|
Port int `json:"port"`
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
MountPoint string `json:"mount_point"`
|
|
SendPositionToBase bool `json:"send_position_to_base"`
|
|
}
|
|
|
|
type NTRIPPayload struct {
|
|
CAS []CasterInfo `json:"cas"`
|
|
Net []NetworkInfo `json:"net"`
|
|
Str []StreamInfo `json:"str"`
|
|
}
|
|
|
|
type CasterInfo struct {
|
|
Country string `json:"country"`
|
|
Distance float64 `json:"distance"`
|
|
FallbackHost string `json:"fallback_host"`
|
|
FallbackPort string `json:"fallback_port"`
|
|
Host string `json:"host"`
|
|
ID string `json:"id"`
|
|
Latitude string `json:"latitude"`
|
|
Longitude string `json:"longitude"`
|
|
NMEA string `json:"nmea"`
|
|
Operator string `json:"operator"`
|
|
OtherDetails *string `json:"other_details"`
|
|
Port string `json:"port"`
|
|
Site string `json:"site"`
|
|
}
|
|
|
|
type NetworkInfo struct {
|
|
Authentication string `json:"authentication"`
|
|
Distance *float64 `json:"distance"`
|
|
Fee string `json:"fee"`
|
|
ID string `json:"id"`
|
|
Operator string `json:"operator"`
|
|
OtherDetails string `json:"other_details"`
|
|
WebNet string `json:"web_net"`
|
|
WebReg string `json:"web_reg"`
|
|
WebStr string `json:"web_str"`
|
|
}
|
|
|
|
type StreamInfo struct {
|
|
Authentication string `json:"authentication"`
|
|
Bitrate string `json:"bitrate"`
|
|
Carrier string `json:"carrier"`
|
|
ComprEncryp string `json:"compr_encryp"`
|
|
Country string `json:"country"`
|
|
Distance float64 `json:"distance"`
|
|
Fee string `json:"fee"`
|
|
Format string `json:"format"`
|
|
FormatDetails string `json:"format_details"`
|
|
Generator string `json:"generator"`
|
|
ID string `json:"id"`
|
|
Latitude string `json:"latitude"`
|
|
Longitude string `json:"longitude"`
|
|
Mountpoint string `json:"mountpoint"`
|
|
NavSystem string `json:"nav_system"`
|
|
Network string `json:"network"`
|
|
NMEA string `json:"nmea"`
|
|
OtherDetails string `json:"other_details"`
|
|
Solution string `json:"solution"`
|
|
}
|