Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFrequency ¶
parseFrequency converts a frequency string to int64 Hz. DX clusters typically send kHz, auto-detected by utils.ParseFrequency.
Types ¶
type Client ¶
type Client struct {
// Channels for emitting events
SpotChan chan Spot
MessageChan chan string
ErrorChan chan error // For parse errors or connection issues
// contains filtered or unexported fields
}
Client represents a single DXCluster connection.
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"` // Name of the cluster it came from (e.g., "DXCluster", "SOTA")
}
Spot represents a parsed DX spot.
Click to show internal directories.
Click to hide internal directories.