Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFrequency ¶
parseFrequency converts a frequency string to float64, handling potential commas as decimal points. DX clusters typically send kHz, so we preserve the original kHz values.
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 float64 `json:"frequency"` // In kHz (original format)
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.