Documentation
¶
Index ¶
- Constants
- Variables
- func AbsoluteFilename() string
- func Directory() string
- type Data
- type LoadedConfiguration
- func (c *LoadedConfiguration) Contest() core.Contest
- func (c *LoadedConfiguration) HamlibAddress() string
- func (c *LoadedConfiguration) Keyer() core.Keyer
- func (c *LoadedConfiguration) KeyerHost() string
- func (c *LoadedConfiguration) KeyerPort() int
- func (c *LoadedConfiguration) Station() core.Station
- func (c *LoadedConfiguration) TCIAddress() string
Constants ¶
View Source
const Filename = "hellocontest.json"
Variables ¶
View Source
var Default = Data{ Station: pb.Station{ Callsign: "DL0ABC", Operator: "DL1ABC", Locator: "AA00zz", }, Contest: pb.Contest{ Name: "Default", EnterTheirNumber: true, EnterTheirXchange: true, RequireTheirXchange: true, AllowMultiBand: true, AllowMultiMode: true, SameCountryPoints: 1, SameContinentPoints: 3, SpecificCountryPoints: 10, SpecificCountryPrefixes: []string{"DL"}, OtherPoints: 5, Multis: &pb.Multis{ Dxcc: true, Wpx: true, Xchange: true, }, XchangeMultiPattern: "\\d+", CountPerBand: true, CabrilloQsoTemplate: "{{.QRG}} {{.Mode}} {{.Date}} {{.Time}} {{.MyCall}} {{.MyReport}} {{.MyNumber}} {{.MyXchange}} {{.TheirCall}} {{.TheirReport}} {{.TheirNumber}} {{.TheirXchange}}", }, Keyer: pb.Keyer{ Wpm: 25, SpMacros: []string{ "{{.MyCall}}", "rr {{.MyReport}} {{.MyNumber}} {{.MyXchange}}", "tu gl", "nr {{.MyNumber}} {{.MyXchange}} {{.MyNumber}} {{.MyXchange}}", }, RunMacros: []string{ "cq {{.MyCall}} test", "{{.TheirCall}} {{.MyReport}} {{.MyNumber}} {{.MyXchange}}", "tu {{.MyCall}} test", "nr {{.MyNumber}} {{.MyXchange}} {{.MyNumber}} {{.MyXchange}}", }, }, TCIAddress: "localhost:40001", HamlibAddress: "localhost:4532", KeyerHost: "localhost", KeyerPort: 6789, }
Functions ¶
func AbsoluteFilename ¶ added in v0.3.0
func AbsoluteFilename() string
Types ¶
type LoadedConfiguration ¶
type LoadedConfiguration struct {
// contains filtered or unexported fields
}
func Load ¶
func Load() (*LoadedConfiguration, error)
Load loads the configuration from the default location (see github.com/ftl/cfg/LoadJSON()).
func (*LoadedConfiguration) Contest ¶ added in v0.6.0
func (c *LoadedConfiguration) Contest() core.Contest
func (*LoadedConfiguration) HamlibAddress ¶
func (c *LoadedConfiguration) HamlibAddress() string
func (*LoadedConfiguration) Keyer ¶ added in v0.6.0
func (c *LoadedConfiguration) Keyer() core.Keyer
func (*LoadedConfiguration) KeyerHost ¶
func (c *LoadedConfiguration) KeyerHost() string
func (*LoadedConfiguration) KeyerPort ¶
func (c *LoadedConfiguration) KeyerPort() int
func (*LoadedConfiguration) Station ¶ added in v0.6.0
func (c *LoadedConfiguration) Station() core.Station
func (*LoadedConfiguration) TCIAddress ¶ added in v0.7.0
func (c *LoadedConfiguration) TCIAddress() string
Click to show internal directories.
Click to hide internal directories.