feat/restructure #73

Merged
bagas merged 4 commits from feat/restructure into staging 2026-01-22 00:48:40 +07:00
Owner
No description provided.
bagas added 4 commits 2026-01-22 00:41:46 +07:00
- Centralize environment variable loading in config.MustLoad
- Parse and validate all env vars once at initialization
- Make config fields private and read-only
- Remove public Getenv usage in favor of typed accessors
- Improve validation and initialization order
- Normalize enum naming to be idiomatic and avoid constant collisions
ci: add sonarqube scan
SonarQube Scan / SonarQube Trigger (push) Successful in 48s
1408b80917
refactor(lifecycle): reorder resource closing and simplify Close()
SonarQube Scan / SonarQube Trigger (push) Successful in 53s
9f4c24a3f3
- Close channel and connection first, then remove session
- Close forwarded port and forwarder at the end for TCP tunnels
- Aggregate all errors using errors.Join instead of failing early
refactor(registry): define reusable constant errors
SonarQube Scan / SonarQube Trigger (push) Successful in 52s
SonarQube Scan / SonarQube Trigger (pull_request) Successful in 46s
634c8321ef
- Introduced package-level error variables in registry to replace repeated fmt.Errorf calls
- Added errors like ErrSessionNotFound, ErrSlugInUse, ErrInvalidSlug, ErrForbiddenSlug, ErrSlugChangeNotAllowed, and ErrSlugUnchanged
bagas merged commit 961a905542 into staging 2026-01-22 00:48:40 +07:00
bagas deleted branch feat/restructure 2026-01-22 13:30:40 +07:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bagas/tunnel-please#73