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-0178 days ago14,975 downloads
2.9.0-01 year ago928 downloads
2.8.3-01 year ago224 downloads
2.8.2-02 years ago148,640 downloads
2.8.1-03 years ago82,482 downloads
2.8.0-03 years ago15,667 downloads
2.7.0-03 years ago12,538 downloads
2.6.1-13 years ago24,672 downloads
2.6.1-03 years ago(revision: 2)9 downloads
2.6-03 years ago12,282 downloads
2.5-03 years ago8,507 downloads
2.4-03 years ago12,906 downloads
2.3-03 years ago76 downloads
2.2-03 years ago15,263 downloads
2.1-03 years ago1,888 downloads
2.0-04 years ago7,076 downloads
1.9-04 years ago955 downloads
1.8-04 years ago7,284 downloads
1.7-04 years ago3,136 downloads
1.6-14 years ago(revision: 2)592 downloads
1.6-04 years ago(revision: 2)15 downloads
1.5-04 years ago(revision: 2)522 downloads
1.4-04 years ago(revision: 2)304 downloads
1.3-04 years ago248 downloads
1.2-04 years ago139 downloads
1.1-04 years ago36 downloads
1.0-04 years ago34 downloads
0.9-04 years ago200 downloads
0.8-04 years ago103 downloads
0.7-04 years ago212 downloads
0.6-04 years ago66 downloads
0.5-04 years ago151 downloads
0.4-04 years ago320 downloads
0.3-04 years ago11 downloads

Dependencies

Dependency for

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

Manifests