initial commit 2
This commit is contained in:
16
domain/contract/data.go
Normal file
16
domain/contract/data.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package contract
|
||||
|
||||
// DataManager holds the methods that manipulates the main data.
|
||||
type DataManager interface {
|
||||
repoManager
|
||||
Begin() (TransactionManager, error)
|
||||
Close() error
|
||||
}
|
||||
|
||||
// TransactionManager holds the methods that manipulates the main
|
||||
// data, from within a transaction.
|
||||
type TransactionManager interface {
|
||||
repoManager
|
||||
Rollback() error
|
||||
Commit() error
|
||||
}
|
||||
Reference in New Issue
Block a user