Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transactor ¶
type Transactor interface { // WithinTransaction runs a function within a database transaction. // // Transaction is propagated in the context, // so it is important to propagate it to underlying repositories. // Function commits if error is nil, and rollbacks if not. // It returns the same error. WithinTransaction(context.Context, func(ctx context.Context) error) error }
Transactor runs logic inside a single database transaction
type WalletRepo ¶
Click to show internal directories.
Click to hide internal directories.