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

Introduce a mode for transaction manager to be initiated as a golang module #125

Closed
wants to merge 3 commits into from

Conversation

Chengxuan
Copy link
Contributor

This PR separates the core functionality from the public interface choice (HTTP) which allows the core functionality provided by the transaction manager to be used as a golang module that backs up any format of the public interface or be remembered into another Golang project.

Here is a list of changes:

  1. Introduced an extra parameter for creating a new transaction manager. When the extra parameter (module functions) is provided, the created transaction manager will not initiate any HTTP server-specific components and allow events to be streamed back through the callback module function provided.
  2. Exposed subsets of Stream, Listener and Transaction Handler functions as part of the module mode public interface.
  3. the default transaction notifications are not exposed in module mode, use listeners instead

Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
@Chengxuan Chengxuan requested a review from a team as a code owner July 9, 2024 13:05
@Chengxuan Chengxuan closed this Jul 9, 2024
@Chengxuan Chengxuan deleted the module-mode branch July 9, 2024 14:50
@Chengxuan
Copy link
Contributor Author

need to think through the set of interfaces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant