Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventSender ¶
type EventSender struct {
// contains filtered or unexported fields
}
EventSender sends events
func NewEventSender ¶
func NewEventSender(ctx context.Context, projectID, topicName string) (*EventSender, error)
NewEventSender creates new EventSender
func (*EventSender) Publish ¶
func (s *EventSender) Publish(ctx context.Context, e *event.MetricReading) error
Publish sends provied events to GCP PubSub
Click to show internal directories.
Click to hide internal directories.