Webhook is an implementation of EventHandler that sends an asynchronous HTTP POST
| 32 | |
| 33 | // Webhook is an implementation of EventHandler that sends an asynchronous HTTP POST |
| 34 | type Webhook struct { |
| 35 | AsyncEventHandler |
| 36 | url string |
| 37 | filter *JSEventFunction |
| 38 | timeout time.Duration |
| 39 | client *http.Client |
| 40 | options struct { |
| 41 | DocumentChangedWinningRevOnly bool |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | const ( |
| 46 | // default HTTP post timeout |
nothing calls this directly
no outgoing calls
no test coverage detected