Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
DXCC *dxcc.DxccInfo `json:"dxcc_info"`
LoTW *lotw.UserActivity `json:"lotw_info"`
IsLoTWUser bool `json:"lotw_user"` // Convenience field
}
Info represents the enriched DXCC and LoTW information for a callsign.
type Spot ¶
type Spot struct {
Spotter string `json:"spotter"`
Spotted string `json:"spotted"`
Frequency int64 `json:"frequency"` // In Hz (canonical storage unit)
Message string `json:"message"`
When time.Time `json:"when"`
Source string `json:"source"` // e.g., "DXCluster", "SOTA", "pota"
Band string `json:"band"` // e.g., "20m", "40m"
SpotterInfo Info `json:"spotter_data"`
SpottedInfo Info `json:"spotted_data"`
// Additional data for POTA, if applicable
AdditionalData struct {
PotaRef string `json:"pota_ref,omitempty"`
PotaMode string `json:"pota_mode,omitempty"`
} `json:"additional_data,omitempty"`
}
Spot represents a single aggregated and enriched ham radio spot. This is the canonical struct used throughout the application and for API responses.
func (Spot) MarshalJSON ¶
MarshalJSON customizes the JSON output to match the expected API format
Click to show internal directories.
Click to hide internal directories.