Documentation ¶
Index ¶
- func ClearVirtualHost(name string) string
- func FindRoute(pattern string, routes ...config.Route) (host string, ep *config.Route)
- func Forward(dialTimeout time.Duration, routes []config.Route, log logr.Logger, ...)
- func IsRealIP(addr string) bool
- func RealIP(addr string, clientAddr net.Addr) string
- func ResolveStatusResponse(dialTimeout time.Duration, routes []config.Route, log logr.Logger, ...) (logr.Logger, *packet.StatusResponse, error)
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 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.