Documentation ¶
Index ¶
- Variables
- func Copy(c *Configuration) error
- func ListBandNames() []string
- func ListModeNames() []string
- func LookupBand(frequency int) string
- func LookupFrequencyRange(band string) (int, int)
- func LookupMode(mode, submode string) string
- func LookupModeSubmode(band, mode string) (string, string)
- func Read(fname string) error
- func ReadLookupsFromFile(fname string) error
- func Reload(c Configuration) error
- func ReloadLookups(l Lookups) error
- func Write() error
- func WriteLookupsToFile() error
- type Band
- type Configuration
- type Lookups
- type Mode
Constants ¶
This section is empty.
Variables ¶
var ( // unwrapped config values Station station QSODatabase qsodatabase QSOTableview qsotableview UI ui SourceFiles []sourcefile LogbookServices logbookservices ClusterServices clusterservices WorkingDirectory string BackupDirectory string )
var ( Bands []Band Modes []Mode )
Functions ¶
func Copy ¶
func Copy(c *Configuration) error
Copy provides the caller a copy of the current configuration
func ListBandNames ¶
func ListBandNames() []string
ListBandNames returns a list of the bands for displaying to the user
func ListModeNames ¶
func ListModeNames() []string
ListModeNames returns a list of the modes for displaying to the user
func LookupBand ¶
LookupBand returns the band name for the frequency passed
func LookupFrequencyRange ¶
LookupFrequency returns the low and high ends of the frequency range for the band name passed
func LookupMode ¶
LookupMode returns the mode name that matches the mode & submode
func LookupModeSubmode ¶
LookupModeSubmode returns the mode & submode based on the mode name mode
func ReadLookupsFromFile ¶
ReadLookupsFromFile reads lookups from file fname
func Reload ¶
func Reload(c Configuration) error
Reload current configuration from caller provided configuration
func ReloadLookups ¶
ReloadLookups current lookups from caller provided lookups
func Write ¶
func Write() error
Write writes application configuration to the same file it was read from
func WriteLookupsToFile ¶
func WriteLookupsToFile() error
WriteLookupsToFile writes lookups to file fname
Types ¶
type Configuration ¶
type Configuration struct { Station station QSODatabase qsodatabase QSOTableview qsotableview UI ui SourceFiles []sourcefile LogbookServices logbookservices ClusterServices clusterservices WorkingDirectory string BackupDirectory string }
Configuration is the application configuration that is serialized/deserialized to file
func (*Configuration) AddSourceFile ¶
func (c *Configuration) AddSourceFile(fname string)
func (*Configuration) RemoveSourceFile ¶
func (c *Configuration) RemoveSourceFile(idx int)
func (*Configuration) Validate ¶
func (c *Configuration) Validate() error
Validate tests the required Configuration fields
type Lookups ¶
func ReadLookupsFromTQSL ¶
ReadLookupsFromTQSL returns the lookups from the TQSL config.xml file