aprsis

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultListenAddr = ":14580"
	DefaultServerAddr = "rotate.aprs2.net:14580"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OnProxyClientFunc

type OnProxyClientFunc func(callsign string, client *ProxyClient)

OnProxyClientFunc callback.

type Proxy

type Proxy struct {
	// Logger used for the proxy.
	Logger *logrus.Logger

	// Filter is an APRS range filter.
	Filter string

	// OnClient gets called when a new client is logged in through the proxy.
	OnClient OnProxyClientFunc
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(listen, server string) (*Proxy, error)

func (*Proxy) Close

func (proxy *Proxy) Close() error

type ProxyClient

type ProxyClient struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewProxyClient

func NewProxyClient(conn net.Conn) *ProxyClient

func (*ProxyClient) Close

func (client *ProxyClient) Close() error

func (*ProxyClient) Info

func (client *ProxyClient) Info() *radio.Info

func (*ProxyClient) RawPackets

func (client *ProxyClient) RawPackets() <-chan *protocol.Packet

func (*ProxyClient) Run

func (client *ProxyClient) Run(proxy *Proxy)

Jump to

Keyboard shortcuts

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