MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / appWebhookSpecFromJSON

Function appWebhookSpecFromJSON

internal/server/app_webhooks.go:48–54  ·  view source on GitHub ↗

appWebhookSpecFromJSON is appWebhookSpec over a stored manifest.

(manifestJSON string)

Source from the content-addressed store, hash-verified

46
47// appWebhookSpecFromJSON is appWebhookSpec over a stored manifest.
48func appWebhookSpecFromJSON(manifestJSON string) (*store.AppWebhookSpec, error) {
49 var m appmanifest.Manifest
50 if err := json.Unmarshal([]byte(manifestJSON), &m); err != nil {
51 return nil, err
52 }
53 return appWebhookSpec(&m), nil
54}
55
56// appWebhookView is the owner-facing hook status, with the held notice.
57type appWebhookView struct {

Callers

nothing calls this directly

Calls 1

appWebhookSpecFunction · 0.85

Tested by

no test coverage detected