lua-resty-radixtree

This is a radixtree implementation base on FFI for Lua-Openresty

$ luarocks install lua-resty-radixtree

local radix = require("resty.radixtree")
local rx = radix.new({
{
path = "/aa",
metadata = "metadata /aa",
host = "foo.com",
method = {"GET", "POST"},
remote_addr = "127.0.0.1",
},
{
path = "/bb*",
metadata = "metadata /bb",
host = {"*.bar.com", "gloo.com"},
method = {"GET", "POST", "PUT"},
remote_addr = {"fe80:fe80::/64", "127.0.0.1"},
}
})

-- should hit
ngx.say(rx:match("/aa", {host = "foo.com",
method = "GET",
remote_addr = "127.0.0.1"}))

Versions

2.9.1-0304 days ago23,496 downloads
2.9.0-01 year ago1,021 downloads
2.8.3-01 year ago228 downloads
2.8.2-02 years ago154,388 downloads
2.8.1-03 years ago83,215 downloads
2.8.0-03 years ago15,673 downloads
2.7.0-03 years ago12,540 downloads
2.6.1-13 years ago24,702 downloads
2.6.1-03 years ago(revision: 2)11 downloads
2.6-03 years ago12,291 downloads
2.5-03 years ago8,519 downloads
2.4-04 years ago12,908 downloads
2.3-04 years ago78 downloads
2.2-04 years ago15,335 downloads
2.1-04 years ago1,890 downloads
2.0-04 years ago7,078 downloads
1.9-04 years ago957 downloads
1.8-04 years ago7,289 downloads
1.7-04 years ago3,138 downloads
1.6-15 years ago(revision: 2)597 downloads
1.6-05 years ago(revision: 2)17 downloads
1.5-05 years ago(revision: 2)524 downloads
1.4-05 years ago(revision: 2)306 downloads
1.3-05 years ago250 downloads
1.2-05 years ago141 downloads
1.1-05 years ago38 downloads
1.0-05 years ago36 downloads
0.9-05 years ago202 downloads
0.8-05 years ago105 downloads
0.7-05 years ago214 downloads
0.6-05 years ago68 downloads
0.5-05 years ago153 downloads
0.4-05 years ago322 downloads
0.3-05 years ago13 downloads

Dependencies

Dependency for

amber-apigw, Apache APISIX, apisix, digiprime-jwt, digiprime-jwt, edge, magic-apigw

Manifests