Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct { // EndpointURL of your webhook EndpointURL string // Secret used to sign your request body. Secret string // Meta information that you want to send to your webhook (not mandatory) Meta map[string]string // Headers (optional) the list of Headers to send to the endpoint Headers map[string][]string // contains filtered or unexported fields }
Exporter is the exporter of your data to a webhook. It calls the EndpointURL with a POST request with the following format:
{ "meta": { "hostname": "server01", }, "events": [ { "kind": "feature", "contextKind": "anonymousUser", "userKey": "14613538188334553206", "creationDate": 1618909178, "key": "test-flag", "variation": "Default", "value": false, "default": false }, ] }
Click to show internal directories.
Click to hide internal directories.