-
-
Notifications
You must be signed in to change notification settings - Fork 150
Remove global clients #1014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dido18
wants to merge
52
commits into
main
Choose a base branch
from
remove-global-clients
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Remove global clients #1014
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
90cce2c
fix
dido18 c96490b
feat(config): add default configuration file and update config handling
dido18 7b4859a
fix(.gitignore): add entry to ignore config.ini file
dido18 279de2a
test(config): add test for writing default config.ini file and update…
dido18 4f3ac5a
test(config): add tests for retrieving config paths from XDG_CONFIG_H…
dido18 c41b815
feat(config): pass config path to main loop and update handling
dido18 55ca9e5
remove global systray
dido18 f07103e
WIP: remove hub and sh globals
dido18 ef94d97
remove global clients: use callback to avoid nesting import
dido18 d2d3aa6
feat(workflow): add Go installation step to release workflow
dido18 640e644
refactor: rename variable 'h' to 'hub' for clarity in main.go and upd…
dido18 99f8235
docs: add comments to clarify functions and handlers in config, hub, …
dido18 5e2161e
refactor: rename 'hub' and 'serialhub' types to 'Hub' and 'Serialhub'…
dido18 910bac2
refactor: rename 'Hub' and 'Serialhub' types to 'hub' and 'serialhub'…
dido18 17ed6b3
revert config changes
dido18 96f0f51
refactor: update logger handling and improve config path management
dido18 36af1ed
remove globas tools and index
dido18 f939e32
refactor: enhance logging mechanism by implementing logWriter and upd…
dido18 e22281f
remove log websocket
dido18 3bbf371
remove unused global clients comment from hub struct
dido18 0773f99
refactor: integrate systray into hub structure and update newHub func…
dido18 9c2ca54
pass tests
dido18 7e73b6c
Merge branch 'main' into remove-global-clients
dido18 fc51194
chore: add comment regarding potential removal of sysStray dependencies
dido18 8106c84
feat: move serial port into new file
dido18 4dba1a8
feat: add serialhub implementation for managing serial ports
dido18 7ea21c0
refactor: remove serialhub parameter from newHub function and instant…
dido18 a152b02
feat: move `spErr` `spClose` `spWrite` into hub (from serialhub)
dido18 fac0b10
refactor: remove newSerialHub instantiation from hub initialization i…
dido18 f04d5cc
move `spHandlerOpen` to hub from serialport.go
dido18 47213d1
refactor: remove unused serial package import from serialport.go
dido18 14ddd43
renamed h into hub
dido18 1f9b999
fix: add hub reference to PLogger initialization in uploadHandler
dido18 4585769
move `spErr, spWrite, spClose spHandlerOpen at the end for redaibility
dido18 283064c
refactor: clean up serialport.go and serialportlist.go for clarity
dido18 14d72e8
refactor: clarify the impact of removing serialPorts.List() in writer…
dido18 9e13dcb
move serialportlist inside hub
dido18 a69c0dc
refactor on callback
dido18 7e34071
refactor: simplify hub initialization in upload handler tests
dido18 815a791
refactor: remove unused port listing in checkCmd function
dido18 9535905
rename into `h` and revert split of serial.go
dido18 0699e93
refactor: rename hub parameter in send and wsHandler functions for cl…
dido18 062bca0
refactor: move spHandlerOpen function from serialport.go to hub.go fo…
dido18 2bcc06d
remove comment
dido18 4da1624
refactor: remove unused serialPorts variable and instance of serialhu…
dido18 effe50d
remove commented-out spHandlerClose call in FindPortByName for cleane…
dido18 d68fc7a
fix: correct GitHub link in comment for clarity
dido18 fd3b2d7
refactor: replace logWriter with ChanWriter for improved logging mech…
dido18 0370591
refactor: move spErr, spWrite, and spClose functions from serial.go t…
dido18 a50aa86
refactor: remove logger from comment
dido18 65218a6
refactor: replace OnMessage with ChanWriter for improved message hand…
dido18 9cbe49e
fix tests
dido18 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would simplify both of this two with the
ChanWriter