Documentation ¶
Index ¶
- func GetTCPAndUDPPort() (string, error)
- func GetTCPPort() (string, error)
- func HumanizeBytes(s float64) string
- func IsHttp4xxError(resp *http.Response) bool
- func NewFinishableReader(r io.Reader, finishCh <-chan struct{}) io.Reader
- func NewRateLimitReader(r io.Reader, bytePerSec int) io.Reader
- type FinishableReader
- type PortPool
- type RateLimitReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTCPAndUDPPort ¶
func GetTCPPort ¶
func HumanizeBytes ¶
func IsHttp4xxError ¶
func NewFinishableReader ¶
Types ¶
type FinishableReader ¶
type FinishableReader struct {
// contains filtered or unexported fields
}
type PortPool ¶ added in v0.9.0
type PortPool struct {
// contains filtered or unexported fields
}
func NewPortPool ¶ added in v0.9.0
func NewPortPool() *PortPool
func (*PortPool) GetAndReserve ¶ added in v0.9.0
type RateLimitReader ¶
type RateLimitReader struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.