hamqth

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HamQTHConfig

type HamQTHConfig struct {
	Username string `mapstructure:"username"`
	Password string `mapstructure:"password"`
	Callsign string `mapstructure:"callsign"`
}

HamQTHConfig 定义了 HamQTH 配置

type HamQTHProvider

type HamQTHProvider struct {
	// contains filtered or unexported fields
}

HamQTHProvider 实现了 Provider 接口,用于 HamQTH 服务

func NewHamQTHProvider

func NewHamQTHProvider(cfg HamQTHConfig) *HamQTHProvider

NewHamQTHProvider 创建一个新的 HamQTHProvider 实例

func (*HamQTHProvider) Download

func (p *HamQTHProvider) Download(w io.Writer) error

Download 从 HamQTH 下载 ADIF 文件

func (*HamQTHProvider) GetName

func (p *HamQTHProvider) GetName() string

GetName 获取提供商的名称

func (*HamQTHProvider) GetSize

func (p *HamQTHProvider) GetSize() (int64, error)

GetSize 获取 HamQTH 上 ADIF 文件的大小

func (*HamQTHProvider) Upload

func (p *HamQTHProvider) Upload(_ string, line string) error

Upload 上传 QSO 记录到 HamQTH

Jump to

Keyboard shortcuts

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