MCPcopy Create free account
hub / github.com/Unpackerr/unpackerr / watchCmdAndWebhooks

Method watchCmdAndWebhooks

pkg/unpackerr/start.go:314–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

312}
313
314func (u *Unpackerr) watchCmdAndWebhooks() {
315 for hook := range u.hookChan {
316 if hook.WebhookConfig.URL != "" {
317 u.sendWebhookWithLog(hook.WebhookConfig, hook.WebhookPayload)
318 }
319
320 if hook.WebhookConfig.Command != "" {
321 u.runCmdhookWithLog(hook.WebhookConfig, hook.WebhookPayload)
322 }
323 }
324}
325
326// ParseFlags turns CLI args into usable data.
327func (u *Unpackerr) ParseFlags() *Unpackerr {

Callers 1

StartFunction · 0.80

Calls 2

sendWebhookWithLogMethod · 0.95
runCmdhookWithLogMethod · 0.95

Tested by

no test coverage detected