Backend/app chat logic - #14
Merged
Merged
Conversation
…client program launch, prototype
…ers and logging - Move Hub entrypoint to cmd/hub/main.go - Convert hub/ into a proper Go package (no more package main) - Add start.go with clean server bootstrap and QUIC initialization - Add bootstrap.go with env loading and graceful shutdown - Add constants.go with all Hub-level tunables (payload, rate limits, QUIC config) - Add logger.go with structured RFC3339 logging - Add errors.go with centralized protocol error frame sender - Refactor dispatcher.go: - use protocol error constants - add format error counter - remove magic numbers - add production-grade comments - Refactor router.go: - fix incorrect ERR_15 → ERR_08 - fix incorrect ERR_10 → ERR_05 - add comments and logging - Refactor all handlers (HELLO, AUTH, REGISTER, DATA, PING, STATUS, BYE): - use protocol error constants - add comments - remove magic strings - unify logging - normalize target usernames - Improve context.go cleanup logic - Ensure globalSessions and globalAuth are initialized in Start() - Make Hub fully frontend-ready (stable API, stable error codes)
…tation and project assumptions
…session changed to handle fakestream
… no longer needed
…ub for messaging to offline user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backend and cli ui done