transaction

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UseCase added in v1.1.0

type UseCase struct {
	// contains filtered or unexported fields
}

func New

func New(
	cleaner cleaner, fRepo fileRepository,
	txRepo txRepository, idGen generator,
) *UseCase

func (*UseCase) Begin added in v1.1.0

func (u *UseCase) Begin(ctx context.Context, isoLevel model.TxIsoLevel) (string, error)

func (*UseCase) Commit added in v1.1.0

func (u *UseCase) Commit(ctx context.Context) error

func (*UseCase) Rollback added in v1.1.0

func (u *UseCase) Rollback(ctx context.Context) error

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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