Documentation ¶
Index ¶
- Constants
- type Bandmap
- func (m *Bandmap) Add(spot core.Spot)
- func (m *Bandmap) AllBy(order core.BandmapOrder) []core.BandmapEntry
- func (m *Bandmap) Clear()
- func (m *Bandmap) Close()
- func (m *Bandmap) ContestChanged(contest core.Contest)
- func (m *Bandmap) EntryVisible(index int) bool
- func (m *Bandmap) GotoHighestValueEntry()
- func (m *Bandmap) GotoNearestEntry()
- func (m *Bandmap) GotoNextEntryDown()
- func (m *Bandmap) GotoNextEntryUp()
- func (m *Bandmap) Hide()
- func (m *Bandmap) Notify(listener any)
- func (m *Bandmap) RemainingLifetime(index int) float64
- func (m *Bandmap) ScoreUpdated(_ core.Score)
- func (m *Bandmap) SelectByCallsign(call callsign.Callsign) bool
- func (m *Bandmap) SelectEntry(index int)
- func (m *Bandmap) SetActiveBand(band core.Band)
- func (m *Bandmap) SetCallinfo(callinfo Callinfo)
- func (m *Bandmap) SetVFO(vfo core.VFO)
- func (m *Bandmap) SetView(view View)
- func (m *Bandmap) SetVisibleBand(band core.Band)
- func (m *Bandmap) Show()
- func (m *Bandmap) VFOBandChanged(band core.Band)
- func (m *Bandmap) VFOFrequencyChanged(frequency core.Frequency)
- func (m *Bandmap) VFOModeChanged(mode core.Mode)
- type Callinfo
- type DupeChecker
- type Entries
- func (l *Entries) Add(spot core.Spot, now time.Time, weights core.BandmapWeights)
- func (l *Entries) All() []core.BandmapEntry
- func (l *Entries) AllBy(order core.BandmapOrder) []core.BandmapEntry
- func (l *Entries) Bands(active, visible core.Band) []core.BandSummary
- func (l *Entries) CleanOut(maximumAge time.Duration, now time.Time, weights core.BandmapWeights)
- func (l *Entries) Clear()
- func (l *Entries) DoOnEntry(index int, f func(core.BandmapEntry))
- func (l *Entries) ForEach(f func(entry core.BandmapEntry) bool)
- func (l *Entries) Len() int
- func (l *Entries) Notify(listener any)
- func (l *Entries) Select(index int)
- func (l *Entries) SetBands(bands []core.Band)
- func (l *Entries) SetCallinfo(callinfo Callinfo)
- type Entry
- type EntryAddedListener
- type EntryOnFrequencyListener
- type EntryRemovedListener
- type EntrySelectedListener
- type EntryUpdatedListener
- type Logger
- type View
Constants ¶
View Source
const ( // DefaultUpdatePeriod: the bandmap is updated with this period DefaultUpdatePeriod time.Duration = 2 * time.Second // DefaultMaximumAge of entries in the bandmap // entries that were not seen within this period are removed from the bandmap DefaultMaximumAge time.Duration = 10 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bandmap ¶
type Bandmap struct {
// contains filtered or unexported fields
}
func NewBandmap ¶
func NewDefaultBandmap ¶
func (*Bandmap) AllBy ¶
func (m *Bandmap) AllBy(order core.BandmapOrder) []core.BandmapEntry
func (*Bandmap) ContestChanged ¶
func (*Bandmap) EntryVisible ¶
func (*Bandmap) GotoHighestValueEntry ¶ added in v0.18.0
func (m *Bandmap) GotoHighestValueEntry()
func (*Bandmap) GotoNearestEntry ¶
func (m *Bandmap) GotoNearestEntry()
func (*Bandmap) GotoNextEntryDown ¶
func (m *Bandmap) GotoNextEntryDown()
func (*Bandmap) GotoNextEntryUp ¶
func (m *Bandmap) GotoNextEntryUp()
func (*Bandmap) RemainingLifetime ¶
func (*Bandmap) ScoreUpdated ¶ added in v0.18.0
func (*Bandmap) SelectEntry ¶
func (*Bandmap) SetActiveBand ¶
func (*Bandmap) SetCallinfo ¶
func (*Bandmap) SetVisibleBand ¶
func (*Bandmap) VFOBandChanged ¶
func (*Bandmap) VFOFrequencyChanged ¶
func (*Bandmap) VFOModeChanged ¶
type DupeChecker ¶
type Entries ¶
type Entries struct {
// contains filtered or unexported fields
}
func NewEntries ¶
func NewEntries(countEntryValue func(core.BandmapEntry) bool) *Entries
func (*Entries) All ¶
func (l *Entries) All() []core.BandmapEntry
func (*Entries) AllBy ¶
func (l *Entries) AllBy(order core.BandmapOrder) []core.BandmapEntry
func (*Entries) SetCallinfo ¶
type Entry ¶
type Entry struct { core.BandmapEntry // contains filtered or unexported fields }
type EntryAddedListener ¶
type EntryAddedListener interface {
EntryAdded(core.BandmapEntry)
}
type EntryOnFrequencyListener ¶ added in v0.20.0
type EntryOnFrequencyListener interface {
EntryOnFrequency(core.BandmapEntry, bool)
}
type EntryRemovedListener ¶
type EntryRemovedListener interface {
EntryRemoved(core.BandmapEntry)
}
type EntrySelectedListener ¶
type EntrySelectedListener interface {
EntrySelected(core.BandmapEntry)
}
type EntryUpdatedListener ¶
type EntryUpdatedListener interface {
EntryUpdated(core.BandmapEntry)
}
type Logger ¶
type Logger struct{}
func (*Logger) EntryAdded ¶
func (l *Logger) EntryAdded(e core.BandmapEntry)
func (*Logger) EntryRemoved ¶
func (l *Logger) EntryRemoved(e core.BandmapEntry)
func (*Logger) EntryUpdated ¶
func (l *Logger) EntryUpdated(e core.BandmapEntry)
type View ¶
type View interface { Show() Hide() ShowFrame(frame core.BandmapFrame) RevealEntry(entry core.BandmapEntry) }
Click to show internal directories.
Click to hide internal directories.