tasks

package
v0.0.0-...-8924cf8 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(handler TaskStatusChangeEventHandler) int

func BackupQSOs

func BackupQSOs()

func Detach

func Detach(handle int)

func NewHamAlertReader

func NewHamAlertReader() (*hamAlertReader, error)

func Pause

func Pause()

Pause stops all background tasks, no cleanup

func QSLClublog

func QSLClublog() error

QSLClublog uploads all QSOs to Club Log that are older than config.QSLDelay minutes old

func QSLClublogFinal

func QSLClublogFinal()

QSLClublogFinal uploads all QSOs to Club Log regardless of how old they are

func QSLEqsl

func QSLEqsl() error

QSLEqsl uploads all QSOs to eQSL that are older than config.QSLDelay minutes old

func QSLEqslFinal

func QSLEqslFinal()

QSLEqslFinal uploads all QSOs to eQSL regardless of how old they are

func QSLLotw

func QSLLotw() error

QSLLotw uploads QSOs to LoTW

func QSLLotwFinal

func QSLLotwFinal()

QSLLotwFinal uploads all QSOs to LoTW regardless of how old they are

func QSLQrz

func QSLQrz() error

QSLQrz uploads all QSOs to QRZ.com that are older than config.QSLDelay minutes old

func QSLQrzFinal

func QSLQrzFinal()

QSLQrzFinal uploads all QSOs to QRZ.com regardless of how old they are

func Shutdown

func Shutdown()

Shutdown stops all background tasks, and runs cleanup tasks

func SourceFiles

func SourceFiles() error

SourceFiles is the task that aggregates all changes from the adifs being monitored and inserts them into the qso database

func Start

func Start()

Start starts all background tasks

func StartHamAlerts

func StartHamAlerts()

StartHamAlerts starts the collection of spots from HamAlert

func StopHamAlerts

func StopHamAlerts()

StopHamAlerts shutdowns the collection of spots from HamAlert

Types

type GoLogTask

type GoLogTask int
const (
	TaskSourceFiles GoLogTask = iota
	TaskQSLLoTW
	TaskQSLEQSL
	TaskQSLQRZ
	TaskQSLClubLog
	TaskHamAlert

	TaskLast // so we can get the number of tasks defined
)

type GoLogTaskStatus

type GoLogTaskStatus int
const (
	TaskStatusOK GoLogTaskStatus = iota
	TaskStatusFailed
	TaskStatusNotRunning
)

type TaskStatusChangeEventHandler

type TaskStatusChangeEventHandler func([]GoLogTaskStatus)

allow callers to register to recieve event after any status change occurs

Jump to

Keyboard shortcuts

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