uow

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package uow provides the UnitOfWork contract. The GORM implementation and the context plumbing repositories use to join an ambient transaction live in concrete/persistence/uow.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnitOfWork

type UnitOfWork interface {
	Do(ctx context.Context, fn func(ctx context.Context) error) error
}

UnitOfWork wraps multiple repository operations in a single atomic transaction.

Jump to

Keyboard shortcuts

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