Skip to content
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

Refactor package backend to decouple interfaces #439

Open
djshow832 opened this issue Dec 31, 2023 · 0 comments
Open

Refactor package backend to decouple interfaces #439

djshow832 opened this issue Dec 31, 2023 · 0 comments
Labels

Comments

@djshow832
Copy link
Collaborator

Development Task

Currently, BackendConnMgr calls structs Authenticator and CmdProcessor directly, which makes them coupled. It makes UT more complicated, and it will be hard to extend this module. E.g, we may override some behaviors through plugins.

We can define interface Auth for Authenticator and CmdEngine for CmdProcessor. UT can mock implementations and plugins can override the default implementation by defining another implementation.

@djshow832 djshow832 added the enhancement New feature or request label Dec 31, 2023
@djshow832 djshow832 added refactor and removed enhancement New feature or request labels Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant