├── LICENSE
├── README.md
├── docs
├── arch.png
└── plug.png
├── example
├── plug
│ └── plug.go
└── server
│ ├── server.go
│ └── static
│ └── index.html
├── handler.go
├── pipeline.go
├── plug.go
├── plugs
├── body
│ ├── body_plug.go
│ ├── body_plug_test.go
│ └── buffer.go
├── close
│ ├── close.go
│ └── close_test.go
├── i18n
│ ├── i18n.go
│ ├── i18n_test.go
│ ├── locales
│ │ ├── en-US.ini
│ │ └── zh-CN.ini
│ └── utils.go
├── limit
│ ├── limit.go
│ └── limit_test.go
├── mapstruct
│ ├── plug.go
│ ├── plug_test.go
│ └── readme.md
├── on_error.go
├── router
│ ├── readme.md
│ ├── router.go
│ ├── router_test.go
│ ├── sub_router.go
│ └── tree
│ │ ├── param.go
│ │ ├── path.go
│ │ ├── path_test.go
│ │ ├── tree.go
│ │ └── tree_test.go
├── static
│ ├── static.go
│ ├── static_test.go
│ └── test
│ │ ├── a.txt
│ │ ├── b.txt
│ │ └── c.txt
└── timeout
│ ├── timeout.go
│ └── timeout_test.go
└── utils
└── dump_payload.go
/LICENSE:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/LICENSE
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/README.md
--------------------------------------------------------------------------------
/docs/arch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/docs/arch.png
--------------------------------------------------------------------------------
/docs/plug.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/docs/plug.png
--------------------------------------------------------------------------------
/example/plug/plug.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/example/plug/plug.go
--------------------------------------------------------------------------------
/example/server/server.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/example/server/server.go
--------------------------------------------------------------------------------
/example/server/static/index.html:
--------------------------------------------------------------------------------
1 |
Hello from xrest!
2 |
--------------------------------------------------------------------------------
/handler.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/handler.go
--------------------------------------------------------------------------------
/pipeline.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/pipeline.go
--------------------------------------------------------------------------------
/plug.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plug.go
--------------------------------------------------------------------------------
/plugs/body/body_plug.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/body/body_plug.go
--------------------------------------------------------------------------------
/plugs/body/body_plug_test.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/body/body_plug_test.go
--------------------------------------------------------------------------------
/plugs/body/buffer.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/body/buffer.go
--------------------------------------------------------------------------------
/plugs/close/close.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/close/close.go
--------------------------------------------------------------------------------
/plugs/close/close_test.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/close/close_test.go
--------------------------------------------------------------------------------
/plugs/i18n/i18n.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/i18n/i18n.go
--------------------------------------------------------------------------------
/plugs/i18n/i18n_test.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/i18n/i18n_test.go
--------------------------------------------------------------------------------
/plugs/i18n/locales/en-US.ini:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/i18n/locales/en-US.ini
--------------------------------------------------------------------------------
/plugs/i18n/locales/zh-CN.ini:
--------------------------------------------------------------------------------
1 | [base]
2 | say_hi = 嗨 %s
3 | hello = 你好世界!
--------------------------------------------------------------------------------
/plugs/i18n/utils.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/i18n/utils.go
--------------------------------------------------------------------------------
/plugs/limit/limit.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/limit/limit.go
--------------------------------------------------------------------------------
/plugs/limit/limit_test.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/limit/limit_test.go
--------------------------------------------------------------------------------
/plugs/mapstruct/plug.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/mapstruct/plug.go
--------------------------------------------------------------------------------
/plugs/mapstruct/plug_test.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/mapstruct/plug_test.go
--------------------------------------------------------------------------------
/plugs/mapstruct/readme.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/mapstruct/readme.md
--------------------------------------------------------------------------------
/plugs/on_error.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/on_error.go
--------------------------------------------------------------------------------
/plugs/router/readme.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/router/readme.md
--------------------------------------------------------------------------------
/plugs/router/router.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/router/router.go
--------------------------------------------------------------------------------
/plugs/router/router_test.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/router/router_test.go
--------------------------------------------------------------------------------
/plugs/router/sub_router.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/router/sub_router.go
--------------------------------------------------------------------------------
/plugs/router/tree/param.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/router/tree/param.go
--------------------------------------------------------------------------------
/plugs/router/tree/path.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/router/tree/path.go
--------------------------------------------------------------------------------
/plugs/router/tree/path_test.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/router/tree/path_test.go
--------------------------------------------------------------------------------
/plugs/router/tree/tree.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/router/tree/tree.go
--------------------------------------------------------------------------------
/plugs/router/tree/tree_test.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/router/tree/tree_test.go
--------------------------------------------------------------------------------
/plugs/static/static.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/static/static.go
--------------------------------------------------------------------------------
/plugs/static/static_test.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/static/static_test.go
--------------------------------------------------------------------------------
/plugs/static/test/a.txt:
--------------------------------------------------------------------------------
1 | Hello
2 |
--------------------------------------------------------------------------------
/plugs/static/test/b.txt:
--------------------------------------------------------------------------------
1 | Hello
2 |
--------------------------------------------------------------------------------
/plugs/static/test/c.txt:
--------------------------------------------------------------------------------
1 | Hello
2 |
--------------------------------------------------------------------------------
/plugs/timeout/timeout.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/timeout/timeout.go
--------------------------------------------------------------------------------
/plugs/timeout/timeout_test.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/plugs/timeout/timeout_test.go
--------------------------------------------------------------------------------
/utils/dump_payload.go:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AlexanderChen1989/xrest/HEAD/utils/dump_payload.go
--------------------------------------------------------------------------------