listHooksForExecution returns the current hook set for the requested type, or nil when hook execution is not configured for the current LedgerForge instance.
(ctx context.Context, hookType ledgerforgehooks.HookType)
| 1134 | // listHooksForExecution returns the current hook set for the requested type, or nil when |
| 1135 | // hook execution is not configured for the current LedgerForge instance. |
| 1136 | func (l *LedgerForge) listHooksForExecution(ctx context.Context, hookType ledgerforgehooks.HookType) ([]*ledgerforgehooks.Hook, error) { |
| 1137 | if l.Hooks == nil { |
| 1138 | return nil, nil |
| 1139 | } |
| 1140 | |
| 1141 | return l.Hooks.ListHooks(ctx, hookType) |
| 1142 | } |
| 1143 | |
| 1144 | // executeWithLock executes a function with distributed locks to ensure exclusive access to both |
| 1145 | // source and destination balances. It resolves balance IDs first (handling @world indicators), |
no test coverage detected