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.2-063 days ago5,335 downloads
2.9.1-01 year ago25,011 downloads
2.9.0-01 year ago1,077 downloads
2.8.3-01 year ago230 downloads
2.8.2-02 years ago155,317 downloads
2.8.1-03 years ago83,451 downloads
2.8.0-03 years ago15,687 downloads
2.7.0-03 years ago12,541 downloads
2.6.1-14 years ago24,725 downloads
2.6.1-04 years ago(revision: 2)12 downloads
2.6-04 years ago12,292 downloads
2.5-04 years ago8,521 downloads
2.4-04 years ago12,911 downloads
2.3-04 years ago79 downloads
2.2-04 years ago15,341 downloads
2.1-04 years ago1,891 downloads
2.0-04 years ago7,079 downloads
1.9-04 years ago960 downloads
1.8-04 years ago7,292 downloads
1.7-05 years ago3,139 downloads
1.6-15 years ago(revision: 2)598 downloads
1.6-05 years ago(revision: 2)18 downloads
1.5-05 years ago(revision: 2)525 downloads
1.4-05 years ago(revision: 2)307 downloads
1.3-05 years ago251 downloads
1.2-05 years ago142 downloads
1.1-05 years ago39 downloads
1.0-05 years ago37 downloads
0.9-05 years ago203 downloads
0.8-05 years ago106 downloads
0.7-05 years ago215 downloads
0.6-05 years ago69 downloads
0.5-05 years ago154 downloads
0.4-05 years ago323 downloads
0.3-05 years ago14 downloads

Dependencies

Dependency for

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

Manifests