mirror of
https://github.com/gluster/glusterd2.git
synced 2026-02-06 06:45:35 +01:00
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>
12 lines
254 B
Go
12 lines
254 B
Go
package api
|
|
|
|
import (
|
|
"github.com/gluster/glusterd2/pkg/api"
|
|
)
|
|
|
|
// WebhookList holds list of webhooks containing just its URL
|
|
type WebhookList []string
|
|
|
|
// EventList holds list of events happened in last 10 mins(configurable)
|
|
type EventList []api.Event
|