Documentation ¶
Overview ¶
Package netconnlimit provides network utility functions for limiting simultaneous connections across multiple listeners.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSharedSemaphore ¶
func NewSharedSemaphore(n int) chan struct{}
NewSharedSemaphore creates and returns a new semaphore channel that can be used to limit the number of simultaneous connections across multiple listeners.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.