Documentation
¶
Index ¶
Constants ¶
View Source
const ( JsonStructTag = "json" EorStr = "<EOR>" EohStr = "<EOH>" DashStr = "-" ColonStr = ":" Version = "3.1.5" NewLineStr = "\n" )
View Source
const ( UserDefQslWanted = "<USERDEF1:10>QSL_WANTED" // UserDefFwdByEmailStatus = "<USERDEF2:22>SM_FWD_BY_EMAIL_STATUS" // Forwarded by email status UserDefFwdByEmailDate = "<USERDEF3:20:D>SM_FWD_BY_EMAIL_DATE" // Forwarded by email date UserDefQsoUploadStatus = "<USERDEF4:20>SM_QSO_UPLOAD_STATUS" // QSO upload status UserDefQsoUploadDate = "<USERDEF5:18:D>SM_QSO_UPLOAD_DATE" // QSO upload date )
View Source
const ( YesString = "Y" NoString = "N" IgnoreString = "I" RequestedString = "R" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adif ¶
type Adif struct {
HeaderSection HeaderSection
Records []Record
}
type HeaderSection ¶
type HeaderSection struct {
ADIFVer string // ADIF version number
CreatedTimestamp string // timestamp when the ADIF file was created
ProgramID string // name of the logging program
ProgramVersion string // version of the logging program
}
func (*HeaderSection) String ¶
func (h *HeaderSection) String() string
type QslSection ¶
type QslSection struct {
QslMsg string `adif:"qslmsg,omitempty"`
QslMsgIntl string `adif:"qslmsg_intl,omitempty"`
QslRDate string `adif:"qslrdate,omitempty"`
QslSDate string `adif:"qsl_sdate,omitempty"`
QslRcvd string `adif:"qsl_rcvd,omitempty"` // QslRcvd: the QSL received status
QslSent string `adif:"qsl_sent,omitempty"` // QslSent: the QSL sent status
QslSentVia string `adif:"qsl_sent_via,omitempty"`
QslVia string `adif:"qsl_via,omitempty"`
QrzComQsoDownloadDate string `adif:"qrzcom_qso_download_date,omitempty"`
QrzComQsoDownloadStatus string `adif:"qrzcom_qso_download_status,omitempty"`
QrzComQsoUploadDate string `adif:"qrzcom_qso_upload_date,omitempty"`
QrzComQsoUploadStatus string `adif:"qrzcom_qso_upload_status,omitempty"`
}
type Record ¶
type Record struct {
types.QsoDetails
types.ContactedStation
types.LoggingStation
QslSection
UserDef
}
Record represents a single ADIF (Amateur Data Interchange Format) record.
func QsoToRecord ¶
type UserDef ¶
type UserDef struct {
SmQsoUploadDate string `adif:"sm_qso_upload_date"` // Values: "[date-time-stamp]" or empty string
SmQsoUploadStatus string `adif:"sm_qso_upload_status"` // Values: "Y" = Uploaded, "N" = Not Uploaded
SmFwrdByEmailDate string `adif:"sm_fwrd_by_email_date"` // Values: "[date-time-stamp]" or empty string
SmFwrdByEmailStatus string `adif:"sm_fwrd_by_email_status"` // Values: "Y" = Forwarded by email, "N" = Not forwarded
// Indicates if a QSL (physical card) is wanted for this QSO. This allows for tracking if a QSL card is required for
// this qso. 'qsl_rcvd' should be then used to track the status: 'R' = Requested, 'Y' = QSL received.
QslWanted string `adif:"qsl_wanted"`
}
Click to show internal directories.
Click to hide internal directories.