Versions in this module Expand all Collapse all v0 v0.1.0 Dec 3, 2019 Changes in this version + type ITrans interface + Begin func(ctx context.Context) (interface{}, error) + Commit func(ctx context.Context, trans interface{}) error + Rollback func(ctx context.Context, trans interface{}) error + type Trans struct + func NewTrans(db *gorm.DB) *Trans + func (a *Trans) Begin(ctx context.Context) (interface{}, error) + func (a *Trans) Commit(ctx context.Context, trans interface{}) error + func (a *Trans) Rollback(ctx context.Context, trans interface{}) error