MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / listHooksForExecution

Method listHooksForExecution

transaction.go:1136–1142  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
1136func (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),

Calls 1

ListHooksMethod · 0.65

Tested by

no test coverage detected