yusing
ae57edfcb0
refactor(routes): remove unnecessary indirection
2025-10-03 23:28:03 +08:00
yusing
fc23e262d7
chore: update dependencies
2025-10-03 23:26:27 +08:00
yusing
11a3935e0c
refactor(serialization): streamline custom validation logic in ValidateWithCustomValidator function
2025-10-03 23:20:14 +08:00
yusing
42e7adbf86
refactor(serialization): small optimization
2025-10-03 23:19:13 +08:00
yusing
1e0c7a15d8
refactor(metrics): optimize memory allocation in period entries
...
- Replace heap allocation with stack-allocated array in Entries.Get() method.
- Also refactor uptime module to use value types instead of pointer types.
2025-10-03 23:19:12 +08:00
yusing
ba8edb160f
refactor(metrics): replace hardcoded time with contants, merge three tickers into one
2025-10-03 23:19:12 +08:00
Yuzerion
4852efcf9c
feat: faster serialization ( #157 )
...
* refactor: improve deserialization performance
* refactor(serialization): simplify string conversion logic in Convert function
* fix(serialization): default value lookup
* refactor: add comment about concurrency in RegisterDefaultValueFactory
---------
Co-authored-by: yusing <yusing@6uo.me >
2025-10-02 20:30:31 +08:00
yusing
80862bcd2e
chore(go.mod): mod tidy and exclude problematic v0.4.2 of goutils
2025-09-29 17:58:44 +08:00
yusing
45b16abd68
refactor(health): improve health status JSON unmarshalling
2025-09-29 17:52:03 +08:00
yusing
f411e17d80
feat(json): improve JSON performance with bytedance/sonic
2025-09-29 17:43:34 +08:00
yusing
9d508c5950
feat(health): add random delay to health monitor to prevent thundering herd problem
2025-09-28 02:35:44 +08:00
yusing
2ff5e5c0b6
chore(deps): upgrade dependencies
2025-09-27 14:19:30 +08:00
yusing
2a05c6a630
refactor: move websocket package and some http utils to seperate repo
2025-09-27 14:16:42 +08:00
yusing
6776f20332
refactor: move task, error and testing utils to separte repo; apply gofumpt
2025-09-27 13:41:50 +08:00
yusing
5043ef778f
refactor: remove gphttp.ServerError method
2025-09-27 12:47:51 +08:00
yusing
22bcf1201b
refactor: move some io, http and string utils to separate repo
2025-09-27 12:46:41 +08:00
yusing
acecd827d6
refactor(synk): consolidate pool statistics tracking and replace GC tracking with dropped tracking
2025-09-27 11:35:38 +08:00
yusing
b2713a4b83
refactor(health): optimize health checking
2025-09-27 11:32:18 +08:00
yusing
e2aeef3a86
refactor(synk): replace runtime weak pointer functions with weak package and simplify buffer handling
2025-09-27 11:24:50 +08:00
yusing
d406b940d9
style: fix some golangci-lint warnings
2025-09-26 23:45:59 +08:00
yusing
dc1175ad69
refactor(http): remove and replace error helpers with standard http.Error
2025-09-26 23:39:00 +08:00
yusing
55c1c918ba
refactor: remove / throttle some debug logging
2025-09-26 21:00:35 +08:00
yusing
14e243d245
chore(deps): upgrade dependencies
2025-09-26 20:47:21 +08:00
yusing
f7149453d6
refactor(env): move env parsing to separate repo
2025-09-26 20:41:10 +08:00
yusing
00d137d05c
refactor: remove obsolete args.go
2025-09-22 17:18:53 +08:00
yusing
f9affba9fc
refactor(modules): replace github.com/yusing/go-proxy with github.com/yusing/godoxy
2025-09-22 16:44:59 +08:00
yusing
6b3bf84148
fix(stream): nil panic when logging error
2025-09-22 10:27:09 +08:00
yusing
74a215b894
feat(agentproxy): simplify configuration handling and related header management
2025-09-21 11:52:42 +08:00
yusing
de1f4da126
feat(ReverseProxy): add SSL/TLS configuration options and build TLS config method
2025-09-21 10:47:37 +08:00
yusing
a48ccb4423
refactor(server): improve proxy protocol handling
2025-09-19 11:59:34 +08:00
yusing
5fa1417add
fix(server): set default logger in server start options if not provided
2025-09-19 10:31:00 +08:00
yusing
b763c92645
refactor(stream): update TCP and UDP stream listeners to support proxy protocol and ACL wrapping
2025-09-19 10:23:47 +08:00
yusing
09b14a47e9
refactor(config): add SupportProxyProtocol to Entrypoint config
2025-09-18 17:36:19 +08:00
yusing
83a69322fa
refactor(server): enhance server start options and support for proxy protocol
2025-09-18 17:34:02 +08:00
yusing
3aba5a1911
refactor(agent): simplify ReverseProxy method by directly modifying request URL
2025-09-17 14:07:06 +08:00
yusing
7205bf47de
feat(autocert): add DNS resolver options to Config and update provider initialization
2025-09-16 15:43:49 +08:00
yusing
8b8969f033
fix(auth): change userpass to redirect to login and update documentation
2025-09-14 21:11:20 +08:00
yusing
025ebab1ce
refactor(api): remove unused ErrorCode type
2025-09-14 20:50:07 +08:00
yusing
f889f5c08d
fix(oidc): simplify LoginHandler to always redirect to IdP
2025-09-14 14:33:28 +08:00
yusing
2a08c55e39
feat(auth): add GET endpoint for logout and update documentation
2025-09-14 13:07:24 +08:00
yusing
93e1d17090
fix(auth): revert userpass PostAuthCallback to respond http 200
2025-09-14 11:19:37 +08:00
yusing
da71dcf058
fix(docker): simplify and fix logs api
2025-09-14 00:32:47 +08:00
yusing
6b17272347
chore(deps): upgraded dependencies
2025-09-14 00:19:53 +08:00
yusing
103fd3b904
docs(swagger): updated swagger json and yaml
2025-09-14 00:17:43 +08:00
yusing
24fb2e07e6
refactor(api: added all new endpoints and optionally set gin mode
2025-09-14 00:14:28 +08:00
yusing
7b028adaa9
feat(api): add GetContainer endpoint for Docker container retrieval
...
- Implemented GetContainer function to retrieve container details by ID.
- Added error handling for missing ID, container not found, and client creation failures.
- Enhanced Container struct to support omitempty for state field in JSON responses.
- Updated API documentation with Swagger annotations for the new endpoint.
2025-09-14 00:12:23 +08:00
yusing
f3913e1f6f
feat(api): add Docker container management endpoints
...
- Implemented Restart, Start, and Stop endpoints for managing Docker containers.
- Each endpoint includes request validation, error handling, and appropriate responses.
- Enhanced API documentation with Swagger annotations for all new routes.
2025-09-14 00:11:51 +08:00
yusing
b72f3bde53
refactor(routes): remove old HomepageCategories method
2025-09-14 00:11:32 +08:00
yusing
6077a1d70b
feat(metrics): add AllSystemInfo endpoint for real-time system metrics
...
- Implemented AllSystemInfo function to retrieve and stream system information from agents via WebSocket.
- Introduced AllSystemInfoRequest struct for query parameter binding and validation.
- Enhanced error handling for invalid requests and WebSocket upgrades.
- Utilized goroutines for concurrent data fetching from multiple agents, with retry logic for robustness.
2025-09-14 00:10:55 +08:00
yusing
59cae0967a
feat(api): updated docker logs api
...
- Refactored docker logs endpoint to use container ID directly.
2025-09-14 00:10:37 +08:00