GoDoxy/internal/error
Yuzerion 1a5f3735cf
Feat/fileserver (#60)
* cleanup code for URL type

* fix makefile for trace mode

* refactor, merge Entry, RawEntry and Route into one. 

* Implement fileserver.

* refactor: rename HTTPRoute to ReverseProxyRoute to avoid confusion

* refactor: move metrics logger to middleware package

- fix prometheus metrics for load balanced routes
  - route will now fail when health monitor fail to start

* fix extra output of ls-* commands by defer initializaing stuff, speed up start time

* add test for path traversal attack, small fix on FileServer.Start method

* rename rule.on.bypass to pass

* refactor and fixed map-to-map  deserialization

* updated route loading logic

* schemas: add "add_prefix" option to modify_request middleware


* updated route JSONMarshalling

---------

Co-authored-by: yusing <yusing@6uo.me>
2025-02-06 18:23:10 +08:00
..
base.go api: response error in json instead of html for better rendering flexibility 2025-01-29 11:50:08 +08:00
builder.go fixed / suppressed (irrelevant) golangci-lint errors 2024-12-17 10:33:21 +08:00
builder_test.go fixed / suppressed (irrelevant) golangci-lint errors 2024-12-17 10:33:21 +08:00
error.go fixed / suppressed (irrelevant) golangci-lint errors 2024-12-17 10:33:21 +08:00
error_test.go fix deserialization panics on empty map 2024-12-18 15:15:55 +08:00
log.go fixed / suppressed (irrelevant) golangci-lint errors 2024-12-17 10:33:21 +08:00
nested_error.go fix error formatting 2025-02-04 07:04:49 +08:00
subject.go api: response error in json instead of html for better rendering flexibility 2025-01-29 11:50:08 +08:00
utils.go Feat/fileserver (#60) 2025-02-06 18:23:10 +08:00