doc: changed the order.

This commit is contained in:
Yuansheng Wang 2019-05-20 11:07:03 +08:00
parent 87da471f0c
commit 8cac0b806d

View File

@ -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
```