pubsub

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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) Close

func (s *EventSender) Close() error

Close closes the client connection

func (*EventSender) Publish

func (s *EventSender) Publish(ctx context.Context, e *event.MetricReading) error

Publish sends provied events to GCP PubSub

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL