Documentation
¶
Overview ¶
Package scripts embeds all Lua rate-limiting scripts and exposes them as ready-to-use *valkey.Lua values. Each algorithm's implementation imports this package and uses the corresponding script variable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FixedWindow = valkey.NewLuaScript(luaFixedWindow)
FixedWindow is the Lua script for the fixed-window counter algorithm.
View Source
var LeakyBucket = valkey.NewLuaScript(luaLeakyBucket)
LeakyBucket is the Lua script for the leaky-bucket algorithm.
View Source
var SlidingWindowCounter = valkey.NewLuaScript(luaSlidingWindowCounter)
SlidingWindowCounter is the Lua script for the sliding-window counter algorithm.
View Source
var SlidingWindowLog = valkey.NewLuaScript(luaSlidingWindowLog)
SlidingWindowLog is the Lua script for the sliding-window log algorithm.
View Source
var TokenBucket = valkey.NewLuaScript(luaTokenBucket)
TokenBucket is the Lua script for the token-bucket algorithm.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.