qrz

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

ServiceName is the name of the service and is used to look up the service in the container.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Result string
	Reason string
	LogIDS string
	LogID  string
	Count  string
	Data   string
}

type Service

type Service struct {
	LoggerService   *logging.Service `di.inject:"loggingservice"`
	ConfigService   *config.Service  `di.inject:"configservice"`
	DatabaseService *sqlite.Service  `di.inject:"sqliteservice"`
	Config          *types.ForwarderConfig
	// contains filtered or unexported fields
}

Service represents a core FORWARDING structure facilitating interaction between logging, configuration, database, and HTTP services. It allows for dependency injection and manages initialization state effectively.

func (*Service) Forward

func (s *Service) Forward(qso types.Qso, param ...string) error

Forward sends a QSO record to the QRZ.com API, handles the response, and updates the local database with the result.

func (*Service) Initialize

func (s *Service) Initialize() error

Initialize initializes the Service by injecting dependencies, setting the configuration, and preparing HTTP clients as needed.

Jump to

Keyboard shortcuts

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