core

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Bands are all HF bands.

Modes are all relevant modes.

Functions

This section is empty.

Types

type AnnotatedCallsign

type AnnotatedCallsign struct {
	Callsign  callsign.Callsign
	Duplicate bool
}

AnnotatedCallsign contains a callsign with additional information retrieved from databases and the logbook.

type Band

type Band string

Band represents an amateur radio band.

const (
	NoBand   Band = ""
	Band160m Band = "160m"
	Band80m  Band = "80m"
	Band60m  Band = "60m"
	Band40m  Band = "40m"
	Band30m  Band = "30m"
	Band20m  Band = "20m"
	Band17m  Band = "17m"
	Band15m  Band = "15m"
	Band12m  Band = "12m"
	Band10m  Band = "10m"
)

All HF bands.

func (*Band) String

func (band *Band) String() string

type Clock

type Clock interface {
	Now() time.Time
}

Clock represents a source of the current time.

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

type KeyerValues struct {
	TheirCall string
	MyNumber  QSONumber
	MyReport  RST
	MyXchange string
}

KeyerValues contains the values that can be used as variables in the keyer templates.

type Mode

type Mode string

Mode represents the mode.

const (
	NoMode      Mode = ""
	ModeCW      Mode = "CW"
	ModeSSB     Mode = "SSB"
	ModeFM      Mode = "FM"
	ModeRTTY    Mode = "RTTY"
	ModeDigital Mode = "DIGI"
)

All relevant modes.

func (*Mode) String

func (mode *Mode) String() string

type QSO

type QSO struct {
	Callsign     callsign.Callsign
	Time         time.Time
	Band         Band
	Mode         Mode
	MyReport     RST
	MyNumber     QSONumber
	MyXchange    string
	TheirReport  RST
	TheirNumber  QSONumber
	TheirXchange string
	LogTimestamp time.Time
	DXCC         dxcc.Prefix
}

QSO contains the details about one radio contact.

func (*QSO) String

func (qso *QSO) String() string

type QSONumber

type QSONumber int

QSONumber is the unique number of a QSO in the log, either on my or on their side.

func (*QSONumber) String

func (nr *QSONumber) String() string

type RST

type RST string

RST represents a signal report using the "Readability/Signalstrength/Tone" system.

func (*RST) String

func (rst *RST) String() string

type Workmode

type Workmode int

Workmode is either search&pounce or run.

const (
	SearchPounce Workmode = iota
	Run
)

All work modes.

Directories

Path Synopsis
export
csv

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL