Help us shape the future of Go! Take the 2026 Go Developer Survey

qConstruct

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Replace

func Replace(packet string, toCall string, newPath []string) (string, error)

Replace rewrites the path in the header of an APRS packet, leaving the body untouched. It rebuilds the header as "fromCall>toCall,newPath..." so that path-like text appearing in the body/comment is never accidentally modified.

Types

type ConnectionType

type ConnectionType int

ConnectionType defined type of connections

const (
	ConnectionDirectUDP ConnectionType = iota
	ConnectionUnverified
	ConnectionVerifiedClientOnly
	ConnectionVerified
	ConnectionOutboundServer
	ConnectionSendOnly
	ConnectionClientOnly
)

type QConfig

type QConfig struct {
	ServerLogin    string
	ClientLogin    string
	ConnectionType ConnectionType
	EnableTrace    bool
	RemoteIP       string
	IsVerified     bool
	IsClientOnly   bool
	IsSendOnly     bool
}

QConfig includes config of QConstruct

type QResult

type QResult struct {
	Path       []string
	ShouldDrop bool
	DropReason string
	IsLoop     bool
}

QResult is the struct of result of QConstruct

func QConstruct

func QConstruct(p parser.Parsed, config *QConfig) (QResult, error)

QConstruct processes QConstruct

func (*QResult) GetPathString

func (r *QResult) GetPathString() string

GetPathString returns string of path result

Jump to

Keyboard shortcuts

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