Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier struct {
// EndpointURL of your webhook
EndpointURL string
// Optional: Secret used to sign your request body.
Secret string
// Meta (optional) information that you want to send to your webhook
Meta map[string]string
// Headers (optional) the list of Headers to send to the endpoint
Headers map[string][]string
// contains filtered or unexported fields
}
Notifier will call your endpoint URL with a POST request with the following format
{
"meta": {
"hostname": "server01"
},
"flags": {
"deleted": {
"test-flag": {
"rule": "key eq \"random-key\"",
"percentage": 100,
"true": true,
"false": false,
"default": false
}
},
"added": {
"test-flag3": {
"percentage": 5,
"true": "test",
"false": "false",
"default": "default"
}
},
"updated": {
"test-flag2": {
"old_value": {
"rule": "key eq \"not-a-key\"",
"percentage": 100,
"true": true,
"false": false,
"default": false
},
"new_value": {
"disable": true,
"rule": "key eq \"not-a-key\"",
"percentage": 100,
"true": true,
"false": false,
"default": false
}
}
}
}
}
Click to show internal directories.
Click to hide internal directories.