Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Bind string // The address to listen for connections. OnlineMode bool OnlineModeKickExistingPlayers bool Forwarding Forwarding Status Status Query Query // Whether the proxy should present itself as a // Forge/FML-compatible server. By default, this is disabled. AnnounceForge bool Servers map[string]string // name:address Try []string // Try server names order ForcedHosts ForcedHosts FailoverOnUnexpectedServerDisconnect bool ConnectionTimeout int // Write timeout ReadTimeout int Quota Quota Compression Compression ProxyProtocol bool // ha-proxy compatibility ShouldPreventClientProxyConnections bool // sends player ip to mojang BungeePluginChannelEnabled bool Debug bool ConfigAutoUpdate bool Health HealthProbeService }
Config is the configuration of the proxy.
type Forwarding ¶ added in v0.0.4
type Forwarding struct { Mode ForwardingMode VelocitySecret string // Used with "velocity" mode }
type ForwardingMode ¶
type ForwardingMode string
ForwardingMode is a player info forwarding mode.
const ( NoneForwardingMode ForwardingMode = "none" LegacyForwardingMode ForwardingMode = "legacy" // A forwarding mode specified by the Velocity java proxy and // supported by PaperSpigot for versions starting at 1.13. VelocityForwardingMode ForwardingMode = "velocity" )
type HealthProbeService ¶ added in v0.2.0
GRPC health probe service to use with Kubernetes pods. (https://github.com/grpc-ecosystem/grpc-health-probe)
type Quota ¶ added in v0.0.4
type Quota struct { Connections QuotaSettings // Limits new connections per second, per IP block. Logins QuotaSettings // Limits logins per second, per IP block. }
Quota is the config for rate limiting.
type QuotaSettings ¶ added in v0.0.4
type QuotaSettings struct { Enabled bool // If false, there is no such limiting. OPS float32 // Allowed operations/events per second, per IP block Burst int // The maximum events per second, per block; the size of the token bucket MaxEntries int // Maximum number of IP blocks to keep track of in cache }
Click to show internal directories.
Click to hide internal directories.