Files
old-svijetlastrana/domain/contract/data.go
2018-04-25 13:16:36 +02:00

17 lines
367 B
Go

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
}