Webhook is a module that provides a middleware for uploading output files to any destinations in an asynchronous fashion.
| 18 | // Webhook is a module that provides a middleware for uploading output files |
| 19 | // to any destinations in an asynchronous fashion. |
| 20 | type 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. |
| 37 | func (w *Webhook) Descriptor() gotenberg.ModuleDescriptor { |
nothing calls this directly
no outgoing calls
no test coverage detected