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
}
type ProxyClient ¶
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)
Click to show internal directories.
Click to hide internal directories.