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.8.1-081 days ago13,119 downloads
2.8.0-0153 days ago9,860 downloads
2.7.0-0201 days ago12,119 downloads
2.6.1-1249 days ago23,312 downloads
2.6.1-0249 days ago(revision: 2)3 downloads
2.6-0272 days ago10,623 downloads
2.5-0298 days ago8,353 downloads
2.4-0340 days ago12,865 downloads
2.3-01 year ago70 downloads
2.2-01 year ago14,994 downloads
2.1-01 year ago1,882 downloads
2.0-01 year ago7,014 downloads
1.9-01 year ago901 downloads
1.8-01 year ago7,164 downloads
1.7-01 year ago3,045 downloads
1.6-11 year ago(revision: 2)578 downloads
1.6-01 year ago(revision: 2)9 downloads
1.5-01 year ago(revision: 2)511 downloads
1.4-01 year ago(revision: 2)298 downloads
1.3-02 years ago242 downloads
1.2-02 years ago131 downloads
1.1-02 years ago30 downloads
1.0-02 years ago28 downloads
0.9-02 years ago194 downloads
0.8-02 years ago97 downloads
0.7-02 years ago206 downloads
0.6-02 years ago60 downloads
0.5-02 years ago145 downloads
0.4-02 years ago314 downloads
0.3-02 years ago5 downloads

Dependencies

Dependency for

Apache APISIX, edge, magic-apigw

Manifests