connectionlimit

package
v0.0.0-...-b1e6648 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL