Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyticsReporter ¶
type AnalyticsReporter interface { // ReportSinkEnabled reports an enabled sink. ReportSinkEnabled(platform config.CommPlatformIntegration) error }
AnalyticsReporter defines a reporter that collects analytics data for sinks.
type Elasticsearch ¶
type Elasticsearch struct {
// contains filtered or unexported fields
}
Elasticsearch provides integration with the Elasticsearch solution.
func NewElasticsearch ¶
func NewElasticsearch(log logrus.FieldLogger, c config.Elasticsearch, reporter AnalyticsReporter) (*Elasticsearch, error)
NewElasticsearch creates a new Elasticsearch instance.
func (*Elasticsearch) IntegrationName ¶
func (e *Elasticsearch) IntegrationName() config.CommPlatformIntegration
IntegrationName describes the notifier integration name.
func (*Elasticsearch) Type ¶
func (e *Elasticsearch) Type() config.IntegrationType
Type describes the notifier type.
type Webhook ¶
type Webhook struct { URL string Bindings config.SinkBindings // contains filtered or unexported fields }
Webhook provides functionality to notify external service about new events.
func NewWebhook ¶
func NewWebhook(log logrus.FieldLogger, c config.Webhook, reporter AnalyticsReporter) (*Webhook, error)
NewWebhook creates a new Webhook instance.
func (*Webhook) IntegrationName ¶
func (w *Webhook) IntegrationName() config.CommPlatformIntegration
IntegrationName describes the notifier integration name.
func (*Webhook) PostWebhook ¶
func (w *Webhook) PostWebhook(ctx context.Context, jsonPayload *WebhookPayload) (err error)
PostWebhook posts webhook to listener
func (*Webhook) Type ¶
func (w *Webhook) Type() config.IntegrationType
Type describes the notifier type.
Click to show internal directories.
Click to hide internal directories.