MCPcopy Create free account
hub / github.com/gotenberg/gotenberg / Webhook

Struct Webhook

pkg/modules/webhook/webhook.go:20–34  ·  view source on GitHub ↗

Webhook is a module that provides a middleware for uploading output files to any destinations in an asynchronous fashion.

Source from the content-addressed store, hash-verified

18// Webhook is a module that provides a middleware for uploading output files
19// to any destinations in an asynchronous fashion.
20type Webhook struct {
21 enableSyncMode bool
22 allowList []*regexp2.Regexp
23 denyList []*regexp2.Regexp
24 errorAllowList []*regexp2.Regexp
25 errorDenyList []*regexp2.Regexp
26 denyPrivateIPs bool
27 denyPublicIPs bool
28 maxRetry int
29 retryMinWait time.Duration
30 retryMaxWait time.Duration
31 clientTimeout time.Duration
32 asyncCount atomic.Int64
33 disable bool
34}
35
36// Descriptor returns an [Webhook]'s module descriptor.
37func (w *Webhook) Descriptor() gotenberg.ModuleDescriptor {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected