Documentation ¶
Index ¶
Constants ¶
View Source
const (
WebhookEventPing = "ping"
)
Variables ¶
View Source
var ErrWebhookNotFound = errors.New("Webhook not found")
Functions ¶
This section is empty.
Types ¶
type Broadcaster ¶
type Event ¶
type Event struct { Module string `json:"module"` Event string `json:"event"` Payload interface{} `json:"payload,omitempty"` }
Event describes an event that has been triggered.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(logger *zap.SugaredLogger, store WebhookStore) (*Manager, error)
func (*Manager) BroadcastAction ¶
func (*Manager) Info ¶
func (w *Manager) Info() ([]Webhook, []WebhookQueueInfo)
type NoopBroadcaster ¶
type NoopBroadcaster struct{}
func (NoopBroadcaster) BroadcastAction ¶
func (NoopBroadcaster) BroadcastAction(_ context.Context, _ Event) error
type Webhook ¶
type WebhookQueueInfo ¶
Click to show internal directories.
Click to hide internal directories.