GoDoxy/internal/net/http/accesslog
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
..
access_logger.go fix: high cpu usage 2025-01-22 05:44:04 +08:00
access_logger_test.go Feat/fileserver (#60) 2025-02-06 18:23:10 +08:00
config.go fix access logger high cpu usage, simplify some code 2025-01-03 03:30:15 +08:00
config_test.go fix accesslog and serialization 2024-12-18 09:57:29 +08:00
fields.go fix accesslog and serialization 2024-12-18 09:57:29 +08:00
fields_test.go fix accesslog and serialization 2024-12-18 09:57:29 +08:00
file_logger.go fix logs not printing correctly, removed unneccessary loggers 2025-01-20 17:42:54 +08:00
file_logger_test.go access logger support sharing the same file, tests added for concurrent logging 2025-01-03 14:10:09 +08:00
filter.go small string split join optimization 2024-12-19 00:54:31 +08:00
filter_test.go feature: accesslogger 2024-12-18 03:09:46 +08:00
formatter.go fix logs not printing correctly, removed unneccessary loggers 2025-01-20 17:42:54 +08:00
mock_file.go access logger support sharing the same file, tests added for concurrent logging 2025-01-03 14:10:09 +08:00
retention.go fix access logger high cpu usage, simplify some code 2025-01-03 03:30:15 +08:00
retention_test.go fixed some tests 2025-01-03 16:31:49 +08:00
status_code_range.go small string split join optimization 2024-12-19 00:54:31 +08:00