refactoring: transaction manager PR #12203

This commit is contained in:
Torkel Ödegaard
2018-06-15 12:46:20 +02:00
committed by bergquist
parent 6775a82c82
commit 442e0e437b
6 changed files with 116 additions and 118 deletions
+7
View File
@@ -0,0 +1,7 @@
package models
import "context"
type TransactionManager interface {
InTransaction(ctx context.Context, fn func(ctx context.Context) error) error
}