Expand description
Message handling for distributed transactions
This module defines the message types and structures used for communication between nodes in the distributed system, including transaction messages, network control messages, and various financial operations.
Structs§
- AckMutex
Payload - Payload for the AckMutex message
- Acknowledge
Payload - Payload for the AcquireMutex message
- Acquire
Mutex Payload - Payload for the AcquireMutex message
- Create
User - Request to create a new user
- Deposit
- Request to deposit money into an account
- Message
- Represents a message exchanged between nodes in the network
- Pay
- Request to make a payment
- Refund
- Request to process a refund
- Release
Mutex Payload - Payload for the ReleaseMutex message Payload for the AckMutex message
- Snapshot
Response - Response to a state snapshot request
- Transaction
- Represents a financial transaction in the system
- Transfer
- Request to transfer money between accounts
- Withdraw
- Request to withdraw money from an account
Enums§
- Message
Info - Types of message payloads for different operations
- Network
Message Code - Types of network messages used for communication between nodes