Documentation
¶
Index ¶
- Constants
- Variables
- func BandmapByFrequency(a, b BandmapEntry) bool
- func IsExchangeField(name string) bool
- type AnnotatedCallsign
- type AsyncRunner
- type Band
- type BandGraph
- type BandScore
- type BandSummary
- type BandmapEntry
- type BandmapFrame
- type BandmapOrder
- type Callinfo
- type Clock
- type Contest
- type EntryField
- type ExchangeField
- type Frequency
- type Hour
- type Keyer
- type KeyerPreset
- type KeyerSettings
- type KeyerType
- type KeyerValues
- type MatchingAssembly
- type MatchingOperation
- type MatchingPart
- type Mode
- type QSO
- type QSONumber
- type QSORate
- type QSOScore
- type QSOsPerHour
- type QSOsPerHours
- type RST
- type Radio
- type RadioType
- type Score
- type Service
- type ServiceStatusListener
- type ServiceStatusListenerFunc
- type Settings
- type Spot
- type SpotFilter
- type SpotSource
- type SpotType
- type Station
- type VFO
- type VFOBandListener
- type VFOFrequencyListener
- type VFOModeListener
- type Workmode
Constants ¶
const FilterPlaceholder = "."
FilterPlaceholder can be used as placeholder for a missed character in the callsign.
const RadioKeyer = "radio"
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 ¶
func BandmapByFrequency ¶ added in v0.13.0
func BandmapByFrequency(a, b BandmapEntry) bool
func IsExchangeField ¶ added in v0.10.0
Types ¶
type AnnotatedCallsign ¶
type AnnotatedCallsign struct {
Callsign callsign.Callsign
Assembly MatchingAssembly
Duplicate bool
Worked bool
ExactMatch bool
Points int
Multis int
PredictedExchange []string
Name string
UserText 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 BandGraph ¶ added in v0.12.0
type BandGraph struct {
Band Band
DataPoints []BandScore
Max BandScore
// contains filtered or unexported fields
}
func NewBandGraph ¶ added in v0.12.0
func (BandGraph) ScaleHourlyGoalToBin ¶ added in v0.12.0
type BandScore ¶ added in v0.2.0
func (BandScore) PointsPerQSO ¶ added in v0.3.0
func (BandScore) QSOsPerMulti ¶ added in v0.3.0
type BandSummary ¶ added in v0.13.0
type BandmapEntry ¶ added in v0.13.0
type BandmapEntry struct {
Index int
Label string
Call callsign.Callsign
Frequency Frequency
Band Band
Mode Mode
LastHeard time.Time
Source SpotType
Info Callinfo
}
func (BandmapEntry) ProximityFactor ¶ added in v0.13.0
func (e BandmapEntry) ProximityFactor(frequency Frequency) float64
ProximityFactor increases the closer the given frequency is to this entry's frequency. 0.0 = not in proximity, 1.0 = exactly on frequency the sign indiciates if the entry's frequency is above (>0) or below (<0) the reference frequency
type BandmapFrame ¶ added in v0.13.0
type BandmapFrame struct {
Frequency Frequency
ActiveBand Band
VisibleBand Band
Mode Mode
Bands []BandSummary
Entries []BandmapEntry
}
type BandmapOrder ¶ added in v0.13.0
type BandmapOrder func(BandmapEntry, BandmapEntry) bool
func BandmapByDistance ¶ added in v0.13.0
func BandmapByDistance(referenceFrequency Frequency) BandmapOrder
func Descending ¶ added in v0.13.0
func Descending(o BandmapOrder) BandmapOrder
type Callinfo ¶ added in v0.13.0
type Callinfo struct {
Call callsign.Callsign
DXCCName string
PrimaryPrefix string
Continent string
ITUZone int
CQZone int
UserText string
PredictedExchange []string
ExchangeText string
Worked bool // already worked on another band/mode, but does not count as duplicate
Duplicate bool // counts as duplicate
Points int
Multis int
}
type Contest ¶ added in v0.6.0
type Contest struct {
Definition *conval.Definition
Name string
ExchangeValues []string
GenerateSerialExchange bool
GenerateReport bool
StartTime time.Time
MyExchangeFields []ExchangeField
MyReportExchangeField ExchangeField
MyNumberExchangeField ExchangeField
TheirExchangeFields []ExchangeField
TheirReportExchangeField ExchangeField
TheirNumberExchangeField ExchangeField
OperationModeSprint bool
CallHistoryFilename string
CallHistoryFieldNames []string
QSOsGoal int
PointsGoal int
MultisGoal int
}
func (*Contest) UpdateExchangeFields ¶ added in v0.10.0
func (c *Contest) UpdateExchangeFields()
type EntryField ¶
type EntryField string
EntryField represents an entry field in the visual part.
const ( CallsignField EntryField = "callsign" BandField EntryField = "band" ModeField EntryField = "mode" OtherField EntryField = "other" )
The entry fields.
func MyExchangeField ¶ added in v0.10.0
func MyExchangeField(index int) EntryField
func TheirExchangeField ¶ added in v0.10.0
func TheirExchangeField(index int) EntryField
func (EntryField) ExchangeIndex ¶ added in v0.10.0
func (f EntryField) ExchangeIndex() int
func (EntryField) IsMyExchange ¶ added in v0.10.0
func (f EntryField) IsMyExchange() bool
func (EntryField) IsTheirExchange ¶ added in v0.10.0
func (f EntryField) IsTheirExchange() bool
func (EntryField) NextExchangeField ¶ added in v0.10.0
func (f EntryField) NextExchangeField() EntryField
type ExchangeField ¶ added in v0.10.0
type ExchangeField struct {
Field EntryField
CanContainSerial bool
CanContainReport bool
EmptyAllowed bool
Properties conval.ExchangeField
Short string
Name string
Hint string
ReadOnly bool
}
func DefinitionsToExchangeFields ¶ added in v0.10.0
func DefinitionsToExchangeFields(fieldDefinitions []conval.ExchangeField, exchangeEntryField func(int) EntryField) []ExchangeField
type KeyerPreset ¶ added in v0.12.0
type KeyerSettings ¶ added in v0.15.0
type KeyerType ¶ added in v0.12.0
type KeyerType string
const (
KeyerTypeCWDaemon KeyerType = "cwdaemon"
)
type KeyerValues ¶
type KeyerValues struct {
TheirCall string
MyNumber QSONumber
MyReport RST
MyXchange string
MyExchange string
MyExchanges []string
}
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 FalseFriend )
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
MyExchange []string
TheirReport RST
TheirNumber QSONumber
TheirExchange []string
LogTimestamp time.Time
DXCC dxcc.Prefix
Points int
Multis 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
LastHourPoints int
Last5MinPoints int
LastHourMultis int
Last5MinMultis int
}
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 Score ¶ added in v0.2.0
func (Score) StackedGraphPerBand ¶ added in v0.13.0
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)
type SpotFilter ¶ added in v0.13.0
type SpotFilter string
const ( AllSpots SpotFilter = "" OwnContinentSpotsOnly SpotFilter = "continent" OwnCountrySpotsOnly SpotFilter = "country" )
type SpotSource ¶ added in v0.13.0
type VFOBandListener ¶ added in v0.13.0
type VFOBandListener interface {
VFOBandChanged(Band)
}
type VFOFrequencyListener ¶ added in v0.13.0
type VFOFrequencyListener interface {
VFOFrequencyChanged(Frequency)
}
type VFOModeListener ¶ added in v0.13.0
type VFOModeListener interface {
VFOModeChanged(Mode)
}
Directories
¶
| Path | Synopsis |
|---|---|
|
Package callhistory provides access to call history files.
|
Package callhistory provides access to call history files. |
|
export
|
|
|
The package persist allows to store data between sessions of hellocontest.
|
The package persist allows to store data between sessions of hellocontest. |