Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCloudEventsPublisher ¶
func NewCloudEventsPublisher(sender interfaces.Sender, scope promutils.Scope, eventTypes []string) interfaces.Publisher
Types ¶
type KafkaSender ¶
type KafkaSender struct {
Client cloudevents.Client
}
KafkaSender Implementation of Sender
func (*KafkaSender) Send ¶
func (s *KafkaSender) Send(ctx context.Context, notificationType string, event cloudevents.Event) error
type PubSubSender ¶
PubSubSender Implementation of Sender
func (*PubSubSender) Send ¶
func (s *PubSubSender) Send(ctx context.Context, notificationType string, event cloudevents.Event) error
Click to show internal directories.
Click to hide internal directories.