Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddrToPath ¶
some.host:2003 -> some_host_2003 http://some.host:8080 -> http_some_host_8080
func Key ¶ added in v0.11.0
some.host:2003, kafkaRoute -> kafkaRoute_some_host_2003 http://some.host:8080, kafkaRoute -> kafkaRoute_http_some_host_8080
Types ¶
type Limiter ¶ added in v0.12.0
type Limiter chan struct{}
Limiter limits concurrency Users need to call Add() before starting work and Done() when the work is done. Add() will block if the Limiters limit has already been reached and unblock when another thread calls Done()
func NewLimiter ¶ added in v0.12.0
NewLimiter creates a limiter with l slots
Click to show internal directories.
Click to hide internal directories.