~bigbes/core-go

ref: 468752564125e79b5efdfff091d8886dc23e373a core-go/webhooks/queue.go -rw-r--r-- 7.4 KiB
f44afb10 — Simon Ser 4 years ago
go fmt
48250772 — Simon Ser 4 years ago
Remove %e formatting verbs

%e is not valid for formatting error values:

> %e	scientific notation, e.g. -1.234456e+78

Instead, use %w when using fmt.Errorf (for error wrapping) and
%v when using log.Printf (%w is not valid in that context).
cdb177bb — Drew DeVault 4 years ago
(*WebhookQueue).deliverPayload: address error nit

This return does not need to be here.
99671f85 — Drew DeVault 4 years ago
webhooks: add comment clarifying field usage
07f694d2 — Drew DeVault 4 years ago
webhooks: expand auth configuration

The purpose of this change is to enable internal webhooks to be
configured in GQL webhook tables. A webhook subscription now includes
the auth method field which is appropriate, which is limited to either
OAUTH2 or INTERNAL. In the former case, the previous set of fields will
be valid, and in the latter case, the NodeID field will be valid. This
will allow us to register webhook subscriptions for internal use.
6c80f878 — Drew DeVault 5 years ago
webhooks: correct error case log format
3eaac6aa — Drew DeVault 5 years ago
webhooks: test error from delivery attempt
f500157c — Drew DeVault 5 years ago
webhooks: refactor exec code into separate func
8bd6005b — Drew DeVault 5 years ago
webhooks: initial prototype for GQL-native webhooks