Module message

Source
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§

AckMutexPayload
Payload for the AckMutex message
AcknowledgePayload
Payload for the AcquireMutex message
AcquireMutexPayload
Payload for the AcquireMutex message
CreateUser
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
ReleaseMutexPayload
Payload for the ReleaseMutex message Payload for the AckMutex message
SnapshotResponse
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§

MessageInfo
Types of message payloads for different operations
NetworkMessageCode
Types of network messages used for communication between nodes