Documentation ¶
Index ¶
Constants ¶
View Source
const Type = "connlimit"
Variables ¶
This section is empty.
Functions ¶
func FromCli ¶
func FromCli(c *cli.Context) (plugin.Middleware, error)
Constructs the middleware from the command line
func GetSpec ¶
func GetSpec() *plugin.MiddlewareSpec
Types ¶
type ConnLimit ¶
type ConnLimit struct { Connections int64 Variable string // Variable defines how the limiting should be done. e.g. 'client.ip' or 'request.header.X-My-Header' }
Control simultaneous connections for a location per some variable.
func (*ConnLimit) NewHandler ¶
Returns vulcan library compatible middleware
Click to show internal directories.
Click to hide internal directories.