feat(AveragePosition/GetNTRIPMountPoint): change return type, update cmd average_position
This commit is contained in:
@ -1,81 +0,0 @@
|
||||
package model
|
||||
|
||||
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 NTRIPResponse struct {
|
||||
Name string `json:"name"`
|
||||
Payload NTRIPPayload `json:"payload"`
|
||||
State string `json:"state"`
|
||||
}
|
||||
|
||||
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"`
|
||||
}
|
Reference in New Issue
Block a user