yusing
aeb6a69e3d
refactor: remove test run code
2025-04-17 15:06:44 +08:00
yusing
85c9ea34aa
refactor(accesslog): replace JSON log entry struct with zerolog for improved logging efficiency, updated test
2025-04-17 15:06:21 +08:00
yusing
9d85a41bc5
fix(server): ensure HTTP handler is set only if initialized
2025-04-17 14:49:04 +08:00
yusing
0a13bcb8a3
refactor: enhance idlewatcher logging and exit handling
2025-04-17 14:47:31 +08:00
yusing
78bed43199
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.
2025-04-17 14:47:14 +08:00
yusing
41bef09be2
chore: uncomment icon list cache code
2025-04-17 14:44:45 +08:00
yusing
1fe21b84eb
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.
2025-04-17 14:44:12 +08:00
yusing
7f4b04efb7
chore: cont. 0866feb
2025-04-17 14:32:59 +08:00
yusing
9af42a9439
feat(pool): add checkExists method to debug build to detect unexpected behavior
2025-04-17 14:31:57 +08:00
yusing
c80a557a42
fix: log formatting
2025-04-17 14:28:32 +08:00
yusing
0866feb81b
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.
2025-04-17 14:28:09 +08:00
yusing
c7e0dcbfd8
refactor: ping if-flow and remove timeout
2025-04-17 14:21:47 +08:00
yusing
cfd1d8fff0
fix: improved sync.Pool handling
2025-04-17 14:17:50 +08:00
yusing
d7f8359f27
fix: docker clients not caching properly
2025-04-16 15:20:25 +08:00
Yuzerion
80bc018a7f
feat: custom json marshaling implementation, replace json and yaml library ( #89 )
...
* chore: replace gopkg.in/yaml.v3 vs goccy/go-yaml; replace encoding/json with bytedance/sonic
* fix: yaml unmarshal panic
* feat: custom json marshaler implementation
* chore: fix import and err marshal handling
---------
Co-authored-by: yusing <yusing@6uo.me>
2025-04-16 15:02:11 +08:00
Yuzerion
57292f0fe8
feat: proxmox idlewatcher ( #88 )
...
* feat: idle sleep for proxmox LXCs
* refactor: replace deprecated docker api types
* chore(api): remove debug task list endpoint
* refactor: move servemux to gphttp/servemux; favicon.go to v1/favicon
* refactor: introduce Pool interface, move agent_pool to agent module
* refactor: simplify api code
* feat: introduce debug api
* refactor: remove net.URL and net.CIDR types, improved unmarshal handling
* chore: update Makefile for debug build tag, update README
* chore: add gperr.Unwrap method
* feat: relative time and duration formatting
* chore: add ROOT_DIR environment variable, refactor
* migration: move homepage override and icon cache to $BASE_DIR/data, add migration code
* fix: nil dereference on marshalling service health
* fix: wait for route deletion
* chore: enhance tasks debuggability
* feat: stdout access logger and MultiWriter
* fix(agent): remove agent properly on verify error
* fix(metrics): disk exclusion logic and added corresponding tests
* chore: update schema and prettify, fix package.json and Makefile
* fix: I/O buffer not being shrunk before putting back to pool
* feat: enhanced error handling module
* chore: deps upgrade
* feat: better value formatting and handling
---------
Co-authored-by: yusing <yusing@6uo.me>
2025-04-16 14:52:33 +08:00
yusing
1380b58141
fix: nil dereference in docker health checker
2025-04-11 03:23:29 +08:00
yusing
d1524c1013
fix display url of file server rouie, refactor
2025-04-10 06:17:16 +08:00
yusing
3cd9e47fd0
refactor: make lock in error Builder optional
2025-04-10 06:08:37 +08:00
yusing
e3699b406c
fix: error formatting
2025-04-10 06:06:44 +08:00
yusing
6a5d324733
refactor: move favicon into homepage module
2025-04-10 06:04:14 +08:00
yusing
fb075a24d7
refactor: simplify health monitor code
2025-04-10 05:03:01 +08:00
yusing
5d2b700cb2
chore: reduce memory usage of docker container info
2025-04-10 04:56:50 +08:00
yusing
49ee9c908a
chore: better error formatting
2025-04-10 04:52:44 +08:00
yusing
1c892a35f7
fix(route): wildcard labels not applied properly
2025-04-09 16:26:09 +08:00
yusing
c59567ae8f
refactor: rename module route/types to route
2025-04-08 05:04:49 +08:00
yusing
8ed63fe4b0
refactor: rename module config/types from "types" to "config"
2025-04-07 13:33:28 +08:00
yusing
111d767d46
chore(prometheus): drop service health metrics
2025-04-07 12:51:20 +08:00
yusing
5da9dd6082
refactor: move docker/idlewatcher to idlewatcher
2025-04-06 04:05:26 +08:00
yusing
e823172c31
fix: correct error formatting for error builder
2025-04-05 14:19:59 +08:00
yusing
4d030d2e16
refactor(gperr): simplify JSON marshaling in withSubject by using slices package for cloning and reversing subjects
2025-04-05 14:05:32 +08:00
yusing
fb217cf80e
feat(config): initialize agents in parallel, speed up config loading
2025-04-05 14:04:11 +08:00
yusing
3689e72eff
refactor(provider): rename route/provider/types to provider
2025-04-05 13:42:20 +08:00
yusing
26bea0d21d
fix(tests): fix tests for gperr module by stripping ANSI color codes from error messages
2025-04-05 13:31:53 +08:00
yusing
9a5553a5b8
refactor(provider): simplify provider initializations, initialize watcher only when needed
2025-04-05 13:31:09 +08:00
yusing
df24acb4af
feat(config): add implement file provider validation tests
2025-04-05 13:30:54 +08:00
yusing
b53dd17b84
refactor(config): enhance provider conflict error messages, streamline provider loading, and improve validation for config files, rename provider.GetType() to Type()
2025-04-05 13:30:24 +08:00
yusing
73a5c57d67
refactor(agent): update logging message format in agent initialization, rename Start* to Init*
2025-04-05 12:00:52 +08:00
yusing
253e06923d
refactor: rename Deserialize* to UnmarshalValidate*
2025-04-05 11:58:11 +08:00
yusing
2c0d58f692
refactor: move config reload error logging to separate method
2025-04-04 03:51:09 +08:00
yusing
864a43266d
refactor: simplify JSON marshaling in withSubject by using a map
2025-04-04 00:50:17 +08:00
yusing
477ddb6241
refactor: remove unused code
2025-04-04 00:47:36 +08:00
yusing
fdac2853af
chore: update set/map parallel logic
2025-04-04 00:46:24 +08:00
Yuzerion
8e37627371
Feat/http3 ( #84 )
...
* chore(deps): update go-playground/validator to v10.26.0
* chore(deps): update Go version to 1.24.2 and dependencies, reorganize dependencies into categorized sections
* chore(deps): update Go version to 1.24.2 in Dockerfile
* refactor(agent): replace deprecated context import with standard context package
* feat(http3): add HTTP/3 support and refactor server handling code into utility functions
---------
Co-authored-by: yusing <yusing@6uo.me>
2025-04-04 00:18:15 +08:00
yusing
be85633c32
fix(agent): fix agent host validatation and improve file path handling
2025-03-29 16:44:16 +08:00
yusing
146e7781be
fix: limit redirect count when parsing html for favicon, fix url sanitize method
2025-03-29 09:35:12 +08:00
yusing
d2e2086540
fix: loading_page html
2025-03-29 08:21:26 +08:00
yusing
d105f866ff
feat: enhance idlewaker loading page design and add favicon handling in waker_http, removed unnecessary checkings
2025-03-29 08:18:58 +08:00
yusing
1c001ed9df
refactor: clean up logger and metric initialization flow
2025-03-29 02:59:40 +08:00
yusing
366c89164f
chore: remove prometheus router metrics and related initialization code
2025-03-29 02:59:40 +08:00