mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-03 20:47:35 +08:00
doc: changed the order.
This commit is contained in:
parent
87da471f0c
commit
8cac0b806d
52
README.md
52
README.md
@ -2,6 +2,32 @@
|
||||
|
||||
# Design Doc
|
||||
|
||||
### How to load the plugin?
|
||||
|
||||
![](doc/flow-load-plugin.png)
|
||||
|
||||
### Plugin
|
||||
|
||||
![](doc/flow-plugin-internal.png)
|
||||
|
||||
|
||||
# Development
|
||||
|
||||
### Source Install
|
||||
|
||||
> Dependent library
|
||||
|
||||
* [lua-resty-r3] Setups the [resty-r3#install](https://github.com/iresty/lua-resty-r3#install) library.
|
||||
* [lua-resty-mlcache] Setups the [resty-mlcache#install](https://github.com/iresty/lua-resty-mlcache#installation) library.
|
||||
* [lua-resty-etcd] Setups the [resty-etcd#install](https://github.com/iresty/lua-resty-etcd#install) library.
|
||||
* [lua-resty-balancer] Setups the [resty-balancer#install](https://github.com/iresty/lua-resty-balancer#installation) library.
|
||||
|
||||
> install by luarocks
|
||||
|
||||
```shell
|
||||
luarocks install lua-resty-r3 lua-resty-mlcache lua-resty-etcd lua-resty-balancer
|
||||
```
|
||||
|
||||
### User routes with plugins config in etcd
|
||||
|
||||
Here is example for one route and one upstream:
|
||||
@ -44,29 +70,3 @@ $ curl http://127.0.0.1:2379/v2/keys/user_routes/1 | python -m json.tool
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### How to load the plugin?
|
||||
|
||||
![](doc/flow-load-plugin.png)
|
||||
|
||||
### Plugin
|
||||
|
||||
![](doc/flow-plugin-internal.png)
|
||||
|
||||
|
||||
# Development
|
||||
|
||||
### Source Install
|
||||
|
||||
> Dependent library
|
||||
|
||||
* [lua-resty-r3] Setups the [resty-r3#install](https://github.com/iresty/lua-resty-r3#install) library.
|
||||
* [lua-resty-mlcache] Setups the [resty-mlcache#install](https://github.com/iresty/lua-resty-mlcache#installation) library.
|
||||
* [lua-resty-etcd] Setups the [resty-etcd#install](https://github.com/iresty/lua-resty-etcd#install) library.
|
||||
* [lua-resty-balancer] Setups the [resty-balancer#install](https://github.com/iresty/lua-resty-balancer#installation) library.
|
||||
|
||||
> install by luarocks
|
||||
|
||||
```shell
|
||||
luarocks install lua-resty-r3 lua-resty-mlcache lua-resty-etcd lua-resty-balancer
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user