Documentation
¶
Overview ¶
Package gorm_uow provides the GORM implementation of the UnitOfWork contract, plus the context plumbing repositories use to join an ambient transaction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UnitOfWork ¶
type UnitOfWork struct {
// contains filtered or unexported fields
}
UnitOfWork is the GORM-backed implementation of a transactional unit of work. It satisfies the consumer-defined UnitOfWork interface each service declares.
func New ¶
func New(orm *gorm.DB) *UnitOfWork
Click to show internal directories.
Click to hide internal directories.