Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvailableLocalAddress ¶
func GetAvailableLocalAddress() string
GetAvailableLocalAddress finds an available local port and returns an endpoint describing it. The port is available for opening when this function returns provided that there is no race by some other code to grab the same port immediately.
func HostPortFromAddr ¶
HostPortFromAddr extracts host and port from a network address
func WaitForEndpoint ¶
func WaitForEndpoint(endpoint string)
Types ¶
type TCPProxy ¶ added in v0.5.0
type TCPProxy struct {
// contains filtered or unexported fields
}
TCPProxy is used for intercepting WebSocket connections and counting the number of bytes transferred.
func (*TCPProxy) ClientToServerBytes ¶ added in v0.5.0
func (*TCPProxy) IncomingEndpoint ¶ added in v0.5.0
func (*TCPProxy) ServerToClientBytes ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.