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-0290 days ago22,801 downloads
2.9.0-01 year ago1,000 downloads
2.8.3-01 year ago224 downloads
2.8.2-02 years ago153,879 downloads
2.8.1-03 years ago83,104 downloads
2.8.0-03 years ago15,670 downloads
2.7.0-03 years ago12,538 downloads
2.6.1-13 years ago24,699 downloads
2.6.1-03 years ago(revision: 2)9 downloads
2.6-03 years ago12,289 downloads
2.5-03 years ago8,517 downloads
2.4-04 years ago12,906 downloads
2.3-04 years ago76 downloads
2.2-04 years ago15,316 downloads
2.1-04 years ago1,888 downloads
2.0-04 years ago7,076 downloads
1.9-04 years ago955 downloads
1.8-04 years ago7,287 downloads
1.7-04 years ago3,136 downloads
1.6-14 years ago(revision: 2)595 downloads
1.6-04 years ago(revision: 2)15 downloads
1.5-04 years ago(revision: 2)522 downloads
1.4-05 years ago(revision: 2)304 downloads
1.3-05 years ago248 downloads
1.2-05 years ago139 downloads
1.1-05 years ago36 downloads
1.0-05 years ago34 downloads
0.9-05 years ago200 downloads
0.8-05 years ago103 downloads
0.7-05 years ago212 downloads
0.6-05 years ago66 downloads
0.5-05 years ago151 downloads
0.4-05 years ago320 downloads
0.3-05 years ago11 downloads

Dependencies

Dependency for

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

Manifests