Skip to content

Commit 888ac87

Browse files
committed
license: add license headers.
1 parent 0758287 commit 888ac87

File tree

7 files changed

+101
-31
lines changed

7 files changed

+101
-31
lines changed

LICENSE

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2019-2020 Shenzhen ZhiLiu Technology Co., Ltd. https://www.apiseven.com
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.
@@ -199,3 +199,20 @@
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201201
limitations under the License.
202+
203+
=======================================================================
204+
lua-resty-radixtree Subcomponents:
205+
206+
The lua-resty-radixtree project contains subcomponents with separate copyright
207+
notices and license terms. Your use of the source code for the these
208+
subcomponents is subject to the terms and conditions of the following
209+
licenses.
210+
211+
========================================================================
212+
BSD licenses
213+
========================================================================
214+
215+
The following components are provided under a BSD license. See project link for details.
216+
The text of each license is also included at licenses/LICENSE-[project].txt.
217+
218+
rax files from https://github.com/antirez/rax BSD-2-Clause License

NOTICE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
https://github.com/api7/lua-resty-radixtree
2+
Copyright 2019-2020 Shenzhen ZhiLiu Technology Co., Ltd.
3+
https://www.apiseven.com

README.md

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
# Table of Contents
22

3-
* [Name](#name)
4-
* [Status](#status)
5-
* [Synopsis](#synopsis)
6-
* [Methods](#methods)
7-
* [new](#new)
8-
* [match](#match)
9-
* [dispatch](#dispatch)
10-
* [Install](#install)
11-
* [DEV ENV](#dev-env)
12-
* [Benchmark](#benchmark)
3+
- [Table of Contents](#table-of-contents)
4+
- [Name](#name)
5+
- [Synopsis](#synopsis)
6+
- [Methods](#methods)
7+
- [new](#new)
8+
- [Path](#path)
9+
- [Full path match](#full-path-match)
10+
- [Prefix match](#prefix-match)
11+
- [Parameters in path](#parameters-in-path)
12+
- [Operator List](#operator-list)
13+
- [match](#match)
14+
- [dispatch](#dispatch)
15+
- [Install](#install)
16+
- [Compile and install](#compile-and-install)
17+
- [DEV ENV](#dev-env)
18+
- [Install Dependencies](#install-dependencies)
19+
- [Benchmark](#benchmark)
1320

1421
## Name
1522

16-
This is Lua-Openresty implementation library base on FFI for [rax](https://github.com/antirez/rax).
23+
This is Lua implementation library base on FFI for [rax](https://github.com/antirez/rax).
1724

1825
[![Build Status](https://travis-ci.org/iresty/lua-resty-radixtree.svg?branch=master)](https://travis-ci.org/iresty/lua-resty-radixtree)
1926
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/iresty/lua-resty-radixtree/blob/master/LICENSE)
@@ -22,7 +29,9 @@ This project depends on [lua-resty-ipmatcher](https://github.com/iresty/lua-rest
2229

2330
This project has been working in microservices API gateway [Apache APISIX](https://github.com/apache/incubator-apisix).
2431

25-
The project is open sourced by Shenzhen [ZhiLiu](https://www.iresty.com/) Technology Company. In addition to this open source version, our company also provides a more powerful and performing commercial version, and provides technical support. If you are interested in our commercial version, please contact us. email: [[email protected]]([email protected]) .
32+
The project is open sourced by [Shenzhen ZhiLiu](https://www.apiseven.com/) Technology Co., Ltd.
33+
34+
In addition to this open source version, our company also provides a more powerful and performing commercial version, and provides technical support. If you are interested in our commercial version, please [contact us](https://www.apiseven.com/).
2635

2736
## Synopsis
2837

lib/resty/radixtree.lua

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
-- Copyright (C) Yuansheng Wang
1+
-- https://github.com/api7/lua-resty-radixtree
2+
--
3+
-- Copyright 2019-2020 Shenzhen ZhiLiu Technology Co., Ltd.
4+
-- https://www.apiseven.com
5+
--
6+
-- See the NOTICE file distributed with
7+
-- this work for additional information regarding copyright ownership.
8+
-- The owner licenses this file to You under the Apache License, Version 2.0;
9+
-- you may not use this file except in compliance with
10+
-- the License. You may obtain a copy of the License at
11+
--
12+
-- http://www.apache.org/licenses/LICENSE-2.0
13+
--
14+
-- Unless required by applicable law or agreed to in writing, software
15+
-- distributed under the License is distributed on an "AS IS" BASIS,
16+
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
-- See the License for the specific language governing permissions and
18+
-- limitations under the License.
19+
--
220

321
local ipmatcher = require("resty.ipmatcher")
422
local base = require("resty.core.base")
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
%%%%%%%%%
2-
3-
Library
4-
5-
Repo URL
6-
License URL
7-
8-
License text
9-
10-
11-
%%%%%%%%%
12-
13-
rax
14-
https://github.com/antirez/rax
15-
https://github.com/antirez/rax/blob/master/COPYING
16-
171
Copyright (c) 2017, Salvatore Sanfilippo <[email protected]>
182
All rights reserved.
193

@@ -24,4 +8,3 @@ Redistribution and use in source and binary forms, with or without modification,
248

259
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2610

27-
%%%%%%%%%

src/easy_rax.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/* https://github.com/api7/lua-resty-radixtree
2+
*
3+
* Copyright 2019-2020 Shenzhen ZhiLiu Technology Co., Ltd.
4+
* https://www.apiseven.com
5+
*
6+
* See the NOTICE file distributed with
7+
* this work for additional information regarding copyright ownership.
8+
* The owner licenses this file to You under the Apache License, Version 2.0;
9+
* you may not use this file except in compliance with
10+
* the License. You may obtain a copy of the License at
11+
*
12+
* http://www.apache.org/licenses/LICENSE-2.0
13+
*
14+
* Unless required by applicable law or agreed to in writing, software
15+
* distributed under the License is distributed on an "AS IS" BASIS,
16+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
* See the License for the specific language governing permissions and
18+
* limitations under the License.
19+
*/
20+
121
#include <stdlib.h>
222
#include <string.h>
323
#include <netinet/in.h>

src/easy_rax.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/* https://github.com/api7/lua-resty-radixtree
2+
*
3+
* Copyright 2019-2020 Shenzhen ZhiLiu Technology Co., Ltd.
4+
* https://www.apiseven.com
5+
*
6+
* See the NOTICE file distributed with
7+
* this work for additional information regarding copyright ownership.
8+
* The owner licenses this file to You under the Apache License, Version 2.0;
9+
* you may not use this file except in compliance with
10+
* the License. You may obtain a copy of the License at
11+
*
12+
* http://www.apache.org/licenses/LICENSE-2.0
13+
*
14+
* Unless required by applicable law or agreed to in writing, software
15+
* distributed under the License is distributed on an "AS IS" BASIS,
16+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
* See the License for the specific language governing permissions and
18+
* limitations under the License.
19+
*/
20+
121
#ifndef LUA_RESTY_RADIXTREE_H
222
#define LUA_RESTY_RADIXTREE_H
323

0 commit comments

Comments
 (0)