Documentation
¶
Index ¶
- Constants
- func ClearTokenCache()
- func CloseOperatorStreams(operator string) int
- func LocalListener() (*grpc.Server, *bufconn.Listener, error)
- func StartMtlsClientListener(host string, port uint16) (*grpc.Server, net.Listener, error)
- func StartMtlsClientServer(ln net.Listener) (*grpc.Server, error)
- func StartTsNetClientListener(hostname string, port uint16) (*grpc.Server, net.Listener, error)
- func StartWGWrappedMtlsClientListener(host string, port uint16) (*grpc.Server, net.Listener, error)
Constants ¶
const ( Transport contextKey = iota Operator )
const (
// ServerMaxMessageSize - Server-side max GRPC message size
ServerMaxMessageSize = 2 * gb
)
Variables ¶
This section is empty.
Functions ¶
func ClearTokenCache ¶ added in v1.5.0
func ClearTokenCache()
ClearTokenCache - Clear the auth token cache
func CloseOperatorStreams ¶ added in v1.7.4
CloseOperatorStreams cancels all tracked operator-owned gRPC streams.
func LocalListener ¶
LocalListener - Bind gRPC server to an in-memory listener, which is typically used for unit testing, but ... it should be fine
func StartMtlsClientListener ¶ added in v1.6.0
StartMtlsClientListener - Start a mutual TLS listener
func StartMtlsClientServer ¶ added in v1.7.4
StartMtlsClientServer serves the authenticated multiplayer gRPC server on an existing listener. This is primarily useful for tests that need the full mTLS + auth stack without opening a real TCP socket.
func StartTsNetClientListener ¶ added in v1.6.0
StartTsNetClientListener - Start a TSNet gRPC listener
func StartWGWrappedMtlsClientListener ¶ added in v1.7.4
StartWGWrappedMtlsClientListener exposes the multiplayer mTLS listener only inside a WireGuard tunnel while preserving the existing gRPC/mTLS auth stack.
Types ¶
This section is empty.