scripts

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: EUPL-1.2 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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