GoDoxy/internal/utils
Yuzerion 04f806239d
refactor: organize code (#90)
* fix: improved sync.Pool handling

* refactor: ping if-flow and remove timeout

* refactor: enhance favicon fetching with context support and improve cache management

- Added context support to favicon fetching functions to handle timeouts and cancellations.
- Improved cache entry structure to include content type and utilize atomic values for last access time.
- Implemented maximum cache size and entry limits to optimize memory usage.
- Updated error handling for HTTP requests and refined the logic for managing redirects.

* fix: log formatting

* feat(pool): add checkExists method to debug build to detect unexpected behavior

* chore: cont. 0866feb

* refactor: unify route handling by consolidating route query methods with Pool

- Replaced direct calls to routequery with a new routes package for better organization and maintainability.
- Updated various components to utilize the new routes methods for fetching health information, homepage configurations, and route aliases.
- Enhanced the overall structure of the routing logic to improve clarity and reduce redundancy.

* chore: uncomment icon list cache code

* refactor: update task management code

- Rename needFinish to waitFinish
- Fixed some tasks not being waited they should be
- Adjusted mutex usage in the directory watcher to utilize read-write locks for improved concurrency management.

* refactor: enhance idlewatcher logging and exit handling

* fix(server): ensure HTTP handler is set only if initialized

* refactor(accesslog): replace JSON log entry struct with zerolog for improved logging efficiency, updated test

* refactor: remove test run code

---------

Co-authored-by: yusing <yusing@6uo.me>
2025-04-17 15:30:05 +08:00
..
atomic feat: custom json marshaling implementation, replace json and yaml library (#89) 2025-04-16 15:02:11 +08:00
functional feat: custom json marshaling implementation, replace json and yaml library (#89) 2025-04-16 15:02:11 +08:00
pool refactor: organize code (#90) 2025-04-17 15:30:05 +08:00
strutils feat: proxmox idlewatcher (#88) 2025-04-16 14:52:33 +08:00
synk refactor: organize code (#90) 2025-04-17 15:30:05 +08:00
testing feat: proxmox idlewatcher (#88) 2025-04-16 14:52:33 +08:00
fs.go fix logs not printing correctly, removed unneccessary loggers 2025-01-20 17:42:54 +08:00
io.go refactor: organize code (#90) 2025-04-17 15:30:05 +08:00
maps.go chore: reduce memory usage of docker container info 2025-04-10 04:56:50 +08:00
nearest_field.go updated deserialize method to support validation 2024-11-30 02:58:13 +08:00
nocopy.go correcting some behaviors for $DOCKER_HOST, now uses container's private IP instead of localhost 2024-10-11 09:13:38 +08:00
ref_count.go fix edge cases refCounter close channel twice 2025-01-05 09:15:03 +08:00
ref_count_test.go fix edge cases refCounter close channel twice 2025-01-05 09:15:03 +08:00
serialization.go feat: custom json marshaling implementation, replace json and yaml library (#89) 2025-04-16 15:02:11 +08:00
serialization_test.go feat: custom json marshaling implementation, replace json and yaml library (#89) 2025-04-16 15:02:11 +08:00
slices.go simplify icon caching and homepage item override 2025-01-21 06:16:00 +08:00
slices_test.go refactor: use stretchr/testify, replace ExpectBytesEqual and ExpectDeepEqual with ExpectEqual in tests 2025-03-28 08:45:06 +08:00
validation.go feat(config): add implement file provider validation tests 2025-04-05 13:30:54 +08:00