Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func New ¶
New creates a new Proxy and starts it.
It listens on a random local port and proxies connections to the given liteserver URL.
The proxy can be configured to behave in different ways (enabled, stall, or disconnected) to simulate different network conditions.
func (*Proxy) Close ¶
func (p *Proxy) Close()
Close closes the proxy and all active connections to it (including listener).
func (*Proxy) DropConnections ¶
func (p *Proxy) DropConnections()
DropConnections closes all active connections to the proxy. Useful for simulating a network failure or server going down.
func (*Proxy) SetBehaviour ¶
Click to show internal directories.
Click to hide internal directories.