1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-06 15:46:00 +01:00
Files
glusterd2/plugins/events/api/req.go
Prashanth Pai 4f7c8135bf plugins: Create 'api' package for each plugin
In Go, every directory is a distinct package. There is no such thing as
a subpackage. Having `api` is a separate package as a subdirectory in
each plugin ensures that we will not run into cyclic dependency issues.

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-07-26 11:53:42 +05:30

16 lines
358 B
Go

package api
// Webhook is Structure to represent a webhook that will be used
// for posting events
type Webhook struct {
URL string `json:"url"`
Token string `json:"token"`
Secret string `json:"secret"`
}
// WebhookDel is Structure to represent a webhook that will be used
// for deleting webhook
type WebhookDel struct {
URL string `json:"url"`
}