Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnProcessor ¶
type ConnProcessor interface {
ProcessConn(c net.Conn) (ProcessedConn, error)
}
type ConnTunnel ¶
func (ConnTunnel) Close ¶
func (t ConnTunnel) Close()
func (ConnTunnel) Start ¶
func (t ConnTunnel) Start()
type ProcessedConn ¶
type ProcessedConn interface { net.Conn // GatewayID is the ID of the gateway that they connected through GatewayID() string // Username returns the username of the connecting player Username() string // ServerAddr returns the exact Server Address string // that the client send to the server ServerAddr() string // Disconnect sends the client a disconnect message // and closes the connection Disconnect(msg string) error ServerNotFoundMessage() string }
type ServerGateway ¶
type ServerGateway struct { GatewayIDServerIDs map[string][]string Servers []Server Webhooks []webhook.Webhook Log logr.Logger // contains filtered or unexported fields }
func (ServerGateway) Start ¶
func (sg ServerGateway) Start(srvChan <-chan ProcessedConn, poolChan chan<- ConnTunnel) error
Click to show internal directories.
Click to hide internal directories.