Documentation ¶
Overview ¶
Package relay provides functionality to create a Relay Server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Debug Mode Debug bool // Listen Address Addr *net.UDPAddr // Broker Address BrokerAddr *net.UDPAddr // Broker Validation Token BrokerToken string // contains filtered or unexported fields }
Relay Server Config
type Connection ¶
type Connection struct { // Closed Status Closed bool // contains filtered or unexported fields }
Relay Server Connection
type Server ¶
type Server struct { // Open Status Open bool // Exit Channel Exit chan bool // Closed Status Closed bool // contains filtered or unexported fields }
Relay Server
func (*Server) NewConnection ¶
func (s *Server) NewConnection(data *model.P2PRelayConnectionData) (conn *Connection)
Create a new Connection
Click to show internal directories.
Click to hide internal directories.