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

Add public APIs for 2PC #21

Merged
merged 7 commits into from
Apr 18, 2022
Merged

Conversation

vaporos
Copy link
Contributor

@vaporos vaporos commented Apr 18, 2022

No description provided.

This scopes the module to make it sort correctly.

Signed-off-by: Shawn T. Amundson <amundson@bitwise.io>
There are several similar fields between contexts; this makes the
implementations closer by consistently ordering them.

Signed-off-by: Shawn T. Amundson <amundson@bitwise.io>
TwoPhaseCommitContext is the public context struct. It is a superset of
the CoordinatorContext and ParticipantContext. From/TryFrom are
implemented to convert between the contexts.

Signed-off-by: Shawn T. Amundson <amundson@bitwise.io>
TwoPhaseCommitAction is a superset of CoordinatorAction and
ParticipantAction and part of the public API. TryFrom/From implemented
to convert between them.

Signed-off-by: Shawn T. Amundson <amundson@bitwise.io>
Makes CoordinatorMessage and ParticipantMessage private. Also changes
the error type used by CoordinatorMessage to InvalidStateError.

Signed-off-by: Shawn T. Amundson <amundson@bitwise.io>
TwoPhaseCommitEvent is a superset of CoordinatorEvent and
ParticpantEvent. Implements From/TryFrom to convert between them.

Signed-off-by: Shawn T. Amundson <amundson@bitwise.io>
This is the primary public API of the algorithm. This is a superset of
ParticipantAlgorithm and CoordinatorAlgorithm designed to make it easier
to use.

Signed-off-by: Shawn T. Amundson <amundson@bitwise.io>
@vaporos vaporos merged commit 02c3bed into augrim:main Apr 18, 2022
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.

None yet

3 participants