transaction/

directory
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2025 License: MIT

README

Transaction Examples

Overview

This directory contains examples demonstrating how to use the transaction components of the ServiceLib library. Each example is a complete, runnable application that showcases specific features and usage patterns.

Examples

Running the Examples

Each example can be run from its directory using:

go run main.go

License

This project is licensed under the MIT License - see the LICENSE file for details.

Directories

Path Synopsis
Example of basic saga transaction
Example of basic saga transaction
Example of basic usage of the transaction package with WithTransaction function
Example of basic usage of the transaction package with WithTransaction function
Example of using context with timeout in transactions
Example of using context with timeout in transactions
Example of custom transaction execution
Example of custom transaction execution
Example of error handling with checked rollbacks
Example of error handling with checked rollbacks
Example of idempotent operations in transactions
Example of idempotent operations in transactions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL