Documentation
¶
Index ¶
- Variables
- type AnnotatedCallsign
- type AsyncRunner
- type Band
- type BandScore
- type Clock
- type Contest
- type EntryField
- type Frequency
- type Hour
- type Keyer
- type KeyerValues
- type MatchingAssembly
- type MatchingOperation
- type MatchingPart
- type Mode
- type Multis
- type QSO
- type QSONumber
- type QSORate
- type QSOsPerHour
- type QSOsPerHours
- type RST
- type Score
- type Service
- type ServiceStatusListener
- type ServiceStatusListenerFunc
- type Settings
- type Station
- type Workmode
Constants ¶
This section is empty.
Variables ¶
var Bands = []Band{Band160m, Band80m, Band60m, Band40m, Band30m, Band20m, Band17m, Band15m, Band12m, Band10m}
Bands are all supported HF bands.
var Modes = []Mode{ModeCW, ModeSSB, ModeFM, ModeRTTY, ModeDigital}
Modes are all relevant modes.
Functions ¶
This section is empty.
Types ¶
type AnnotatedCallsign ¶
type AnnotatedCallsign struct {
Callsign callsign.Callsign
Assembly MatchingAssembly
Duplicate bool
Worked bool
ExactMatch bool
Points int
Multis int
PredictedXchange string
Comparable interface{}
Compare func(interface{}, interface{}) bool
}
AnnotatedCallsign contains a callsign with additional information retrieved from databases and the logbook.
func (AnnotatedCallsign) LessThan ¶ added in v0.9.0
func (c AnnotatedCallsign) LessThan(o AnnotatedCallsign) bool
type AsyncRunner ¶ added in v0.5.0
type AsyncRunner func(func())
type Band ¶
type Band string
Band represents an amateur radio band.
type BandScore ¶ added in v0.2.0
type BandScore struct {
SpecificCountryQSOs int
SameCountryQSOs int
SameContinentQSOs int
OtherQSOs int
Duplicates int
Points int
CQZones int
ITUZones int
DXCCEntities int
WPXPrefixes int
XchangeValues int
Multis int
}
func (*BandScore) PointsPerQSO ¶ added in v0.3.0
func (*BandScore) QSOsPerMulti ¶ added in v0.3.0
type Contest ¶ added in v0.6.0
type Contest struct {
Name string
EnterTheirNumber bool
EnterTheirXchange bool
RequireTheirXchange bool
AllowMultiBand bool
AllowMultiMode bool
SameCountryPoints int
SameContinentPoints int
SpecificCountryPoints int
SpecificCountryPrefixes []string
OtherPoints int
Multis Multis
XchangeMultiPattern string
CountPerBand bool
CabrilloQSOTemplate string
CallHistoryFilename string
CallHistoryField string
}
type EntryField ¶
type EntryField int
EntryField represents an entry field in the visual part.
const ( CallsignField EntryField = iota TheirReportField TheirNumberField TheirXchangeField MyReportField MyNumberField MyXchangeField BandField ModeField OtherField )
The entry fields.
type KeyerValues ¶
KeyerValues contains the values that can be used as variables in the keyer templates.
type MatchingAssembly ¶ added in v0.9.0
type MatchingAssembly []MatchingPart
func (MatchingAssembly) String ¶ added in v0.9.0
func (m MatchingAssembly) String() string
type MatchingOperation ¶ added in v0.8.0
type MatchingOperation int
const ( Matching MatchingOperation = iota Insert Delete Substitute )
type MatchingPart ¶ added in v0.9.0
type MatchingPart struct {
OP MatchingOperation
Value string
}
type Mode ¶
type Mode string
Mode represents the mode.
type QSO ¶
type QSO struct {
Callsign callsign.Callsign
Time time.Time
Frequency Frequency
Band Band
Mode Mode
MyReport RST
MyNumber QSONumber
MyXchange string
TheirReport RST
TheirNumber QSONumber
TheirXchange string
LogTimestamp time.Time
DXCC dxcc.Prefix
Points int
Duplicate bool
}
QSO contains the details about one radio contact.
type QSONumber ¶
type QSONumber int
QSONumber is the unique number of a QSO in the log, either on my or on their side.
type QSORate ¶ added in v0.3.1
type QSORate struct {
LastHourRate QSOsPerHour
Last5MinRate QSOsPerHour
QSOsPerHours QSOsPerHours
SinceLastQSO time.Duration
}
QSORate contains all statistics regarding the rate of QSOs in a contest.
func (QSORate) SinceLastQSOFormatted ¶ added in v0.4.0
type QSOsPerHour ¶ added in v0.3.1
type QSOsPerHour int
QSOsPerHour is the rate of QSOs per one hour
type QSOsPerHours ¶ added in v0.3.1
type QSOsPerHours map[Hour]QSOsPerHour
QSOsPerHours contains the complete QSO rate statistic mapping each Hour in the contest to the rate of QSOs within this Hour
type RST ¶
type RST string
RST represents a signal report using the "Readability/Signalstrength/Tone" system.
type ServiceStatusListener ¶ added in v0.5.0
type ServiceStatusListenerFunc ¶ added in v0.5.0
func (ServiceStatusListenerFunc) StatusChanged ¶ added in v0.5.0
func (f ServiceStatusListenerFunc) StatusChanged(service Service, available bool)