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

Function getTypeKey

internal/hooks/manager.go:386–395  ·  view source on GitHub ↗

getTypeKey returns the Redis key for a specific hook type set. Parameters: - hookType: The type of hook. Returns: - string: The Redis key for the hook type set.

(hookType HookType)

Source from the content-addressed store, hash-verified

384// Returns:
385// - string: The Redis key for the hook type set.
386func getTypeKey(hookType HookType) string {
387 switch hookType {
388 case PreTransaction:
389 return preHookKeyPrefix
390 case PostTransaction:
391 return postHookKeyPrefix
392 default:
393 return hookKeyPrefix
394 }
395}

Callers 4

RegisterHookMethod · 0.85
UpdateHookMethod · 0.85
DeleteHookMethod · 0.85
ListHooksMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected