35 Commits
Author SHA1 Message Date
Muyao CHEN 8aceb5ff8c fix crash 2024-09-30 19:44:10 +02:00
Muyao CHEN 9da3012789 Integrate cobra into the framework part1 2024-09-30 19:38:16 +02:00
Muyao CHEN fc4f94e967 GoWeb: add cobra 2024-09-30 14:02:36 +02:00
Muyao CHEN 7c4a95ac04 Repo: Add binary to gitignore 2024-09-30 13:53:00 +02:00
Muyao CHEN 17b19e3a10 Repo: reorganize the repo structure 2024-09-30 13:42:37 +02:00
Muyao CHEN c3fc59b8f1 Gin: add container into Gin 2024-09-30 09:32:33 +02:00
Muyao CHEN f0fc7ee2cb Gin: add gin into the framework 2024-09-29 23:50:00 +02:00
Muyao CHEN f0b688ff8c Container: Add Gin web service provider 2024-09-28 22:54:00 +02:00
Muyao CHEN f866f18cfd Container: create service container and service provider 2024-09-28 22:54:00 +02:00
Muyao CHEN 722e8191a9 GoWeb: Remove everything to use Gin 2024-09-28 22:53:41 +02:00
Muyao CHEN c5ab1debdb stop: use graceful shutdown for 5s 2024-09-26 23:05:05 +02:00
Muyao CHEN c0fea38790 stop: use graceful shutdown 2024-09-26 22:58:55 +02:00
Muyao CHEN b98513ad36 stop: catch signals 2024-09-26 22:27:26 +02:00
Muyao CHEN 0786a97a77 context: Get params from url 2024-09-26 21:15:15 +02:00
Muyao CHEN cb1ea9f701 request/response: add implementations for response writer 2024-09-26 09:32:44 +02:00
Muyao CHEN 8f4b378fdd request/response: add more implementations 2024-09-25 22:45:25 +02:00
Muyao CHEN 099d1aeb0f request/response: add interfaces and implementations 2024-09-25 22:20:00 +02:00
Muyao CHEN 3b16d6b16a middleware: refactor tests 2024-09-25 14:09:29 +02:00
Muyao CHEN fc4103cff3 middleware: add tests 2024-09-25 13:52:12 +02:00
Muyao CHEN e770731643 middleware: Add recovery middleware 2024-09-25 13:35:38 +02:00
Muyao CHEN 3bf14b9c04 middleware: Integrate middlewares into router functions 2024-09-25 13:31:37 +02:00
Muyao CHEN 1aa9b78bdc context: implement handler chain 2024-09-24 23:33:33 +02:00
Muyao CHEN e8c4cbaa89 middleware/timeout: implement timeout middleware 2024-09-24 23:21:48 +02:00
Muyao CHEN 14af16c71e middleware/timeout: add timeout middleware 2024-09-24 23:07:42 +02:00
Muyao CHEN 9f83bc7b58 go-sum: commit go sum 2024-09-24 23:07:13 +02:00
Muyao CHEN 0a5e329aa4 core: format 2024-09-24 23:06:39 +02:00
Muyao CHEN 0ed626e351 Route: Use a trie to register routes 2024-09-16 21:04:18 +02:00
Muyao CHEN d90e564620 Router: add prefix group interface and implementation 2024-09-16 12:05:35 +02:00
Muyao CHEN 5cb54ae560 Router: add static routers 2024-09-16 11:39:38 +02:00
Muyao CHEN 913e33a993 Context: Test context with timeout 2024-09-16 11:13:40 +02:00
Muyao CHEN f076ebaa3a Context: hard foo controller mapping for test purpose 2024-09-16 11:13:40 +02:00
Muyao CHEN 33e9d1e613 Context: use timeout in JSON writer 2024-09-16 11:13:40 +02:00
Muyao CHEN f804f175e0 Context: create a customized Context type.
To package the internal context and other common structs, especially
http.Request and http.ResponseWriter.

Provides helper functìons.
2024-09-15 21:38:31 +02:00
Muyao CHEN 63d5d0dc59 Add framework core type 2024-09-05 17:30:59 +02:00
Muyao CHEN b96656a469 Official doc for http server 2024-09-05 16:23:58 +02:00