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-033 days ago3,683 downloads
2.9.0-0241 days ago857 downloads
2.8.3-0242 days ago221 downloads
2.8.2-01 year ago138,537 downloads
2.8.1-02 years ago81,150 downloads
2.8.0-02 years ago15,644 downloads
2.7.0-02 years ago12,535 downloads
2.6.1-13 years ago24,644 downloads
2.6.1-03 years ago(revision: 2)8 downloads
2.6-03 years ago12,189 downloads
2.5-03 years ago8,506 downloads
2.4-03 years ago12,905 downloads
2.3-03 years ago75 downloads
2.2-03 years ago15,248 downloads
2.1-03 years ago1,887 downloads
2.0-03 years ago7,070 downloads
1.9-03 years ago953 downloads
1.8-03 years ago7,282 downloads
1.7-04 years ago3,135 downloads
1.6-14 years ago(revision: 2)589 downloads
1.6-04 years ago(revision: 2)14 downloads
1.5-04 years ago(revision: 2)521 downloads
1.4-04 years ago(revision: 2)303 downloads
1.3-04 years ago247 downloads
1.2-04 years ago138 downloads
1.1-04 years ago35 downloads
1.0-04 years ago33 downloads
0.9-04 years ago199 downloads
0.8-04 years ago102 downloads
0.7-04 years ago211 downloads
0.6-04 years ago65 downloads
0.5-04 years ago150 downloads
0.4-04 years ago319 downloads
0.3-04 years ago10 downloads

Dependencies

Dependency for

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

Manifests