Documentation ¶
Index ¶
- func ClearVirtualHost(name string) string
- func FindRoute(pattern string, routes ...config.Route) (host string, route *config.Route)
- func Forward(dialTimeout time.Duration, routes []config.Route, log logr.Logger, ...)
- func IsTCPShieldRealIP(addr string) bool
- func ResolveStatusResponse(dialTimeout time.Duration, routes []config.Route, log logr.Logger, ...) (logr.Logger, *packet.StatusResponse, error)
- func TCPShieldRealIP(addr string, clientAddr net.Addr) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearVirtualHost ¶
ClearVirtualHost cleans the given virtual host.
func FindRoute ¶
FindRoute returns the first route that matches the given wildcard supporting pattern.
func Forward ¶ added in v0.26.0
func Forward( dialTimeout time.Duration, routes []config.Route, log logr.Logger, client netmc.MinecraftConn, handshake *packet.Handshake, pc *proto.PacketContext, )
Forward forwards a client connection to a matching backend route.
func IsTCPShieldRealIP ¶ added in v0.36.2
IsTCPShieldRealIP returns true if the given virtual host uses TCPShieldRealIP protocol.
func ResolveStatusResponse ¶ added in v0.26.0
func ResolveStatusResponse( dialTimeout time.Duration, routes []config.Route, log logr.Logger, client netmc.MinecraftConn, handshake *packet.Handshake, handshakeCtx *proto.PacketContext, statusRequestCtx *proto.PacketContext, ) (logr.Logger, *packet.StatusResponse, error)
ResolveStatusResponse resolves the status response for the matching route and caches it for a short time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.