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.4-08 days ago1,051 downloads
2.3-043 days ago68 downloads
2.2-077 days ago12,871 downloads
2.1-085 days ago1,876 downloads
2.0-0130 days ago6,534 downloads
1.9-0134 days ago825 downloads
1.8-0229 days ago7,029 downloads
1.7-0312 days ago2,984 downloads
1.6-1346 days ago(revision: 2)574 downloads
1.6-0346 days ago(revision: 2)8 downloads
1.5-0346 days ago(revision: 2)488 downloads
1.4-01 year ago(revision: 2)297 downloads
1.3-01 year ago239 downloads
1.2-01 year ago130 downloads
1.1-01 year ago28 downloads
1.0-01 year ago27 downloads
0.9-01 year ago192 downloads
0.8-01 year ago96 downloads
0.7-01 year ago204 downloads
0.6-01 year ago59 downloads
0.5-01 year ago144 downloads
0.4-01 year ago187 downloads
0.3-01 year ago4 downloads

Dependencies

Dependency for

Apache APISIX, magic-apigw

Manifests