Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ReachedLimitErr = errors.New("reached connection limit")
Functions ¶
This section is empty.
Types ¶
type ConnectionLimitHandler ¶
type ConnectionLimitHandler struct {
// contains filtered or unexported fields
}
func New ¶
func New(limit int, durationInSeconds int32, memcacheUrl ...string) *ConnectionLimitHandler
func (*ConnectionLimitHandler) Check ¶
func (this *ConnectionLimitHandler) Check(connectionId string) error
Click to show internal directories.
Click to hide internal directories.