MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Webhook

Struct Webhook

db/event_handler.go:34–43  ·  view source on GitHub ↗

Webhook is an implementation of EventHandler that sends an asynchronous HTTP POST

Source from the content-addressed store, hash-verified

32
33// Webhook is an implementation of EventHandler that sends an asynchronous HTTP POST
34type 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
45const (
46 // default HTTP post timeout

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected