transaction

package
v0.0.0-...-05815ac Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransactionManager

type TransactionManager interface {
	ExecuteInTransaction(db *gorm.DB, fn func(tx *gorm.DB) error) error
	ExecuteInRedisTransaction(rdb *redis.Client, fn func(tx *redis.Tx) error) error
}

func NewTransactionManager

func NewTransactionManager() TransactionManager

Jump to

Keyboard shortcuts

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