Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLimitReached = errors.New("connection limit reached")
Functions ¶
This section is empty.
Types ¶
type DummyLimiter ¶ added in v1.0.3
type IPLookupFunc ¶
type LimitedUpgrader ¶
type PerIPLimitedUpgrader ¶
type PerIPLimitedUpgrader struct {
// contains filtered or unexported fields
}
func NewPerIPLimiter ¶
func NewPerIPLimiter(maxConnections uint, upgrader *websocket.Upgrader, ipLookup IPLookupFunc) *PerIPLimitedUpgrader
Click to show internal directories.
Click to hide internal directories.