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

Struct HookPayload

internal/hooks/types.go:50–55  ·  view source on GitHub ↗

HookPayload represents the data sent to webhook endpoints.

Source from the content-addressed store, hash-verified

48
49// HookPayload represents the data sent to webhook endpoints.
50type HookPayload struct {
51 TransactionID string `json:"transaction_id"`
52 HookType HookType `json:"hook_type"`
53 Timestamp time.Time `json:"timestamp"`
54 Data json.RawMessage `json:"data,omitempty"` // Changed to omitempty to handle nil data
55}
56
57// HookResponse represents the expected response from webhook endpoints.
58type HookResponse struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected