gcppubsub

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GCPPubSubProjectID = flag.String("gcp_pubsub_project_id", "", "GCP PubSub Project ID to use")
	GCPPubSubTopic     = flag.String("gcp_pubsub_topic", "", "GCP PubSub Topic to publish to")
)

Functions

This section is empty.

Types

type GCPPubSub

type GCPPubSub struct {
	logger.ContextL
	// contains filtered or unexported fields
}

func NewSink

func NewSink(log logger.Underlying, registry go_metrics.Registry) (*GCPPubSub, error)

func (*GCPPubSub) Close

func (s *GCPPubSub) Close()

func (*GCPPubSub) HttpInfo

func (s *GCPPubSub) HttpInfo() map[string]float64

func (*GCPPubSub) Init

func (s *GCPPubSub) Init(ctx context.Context, format formats.Format, compression kt.Compression, fmtr formats.Formatter) error

func (*GCPPubSub) Send

func (s *GCPPubSub) Send(ctx context.Context, payload *kt.Output)

type GCPPubSubMetric

type GCPPubSubMetric struct {
	DeliveryErr go_metrics.Meter
	DeliveryWin go_metrics.Meter
}

Jump to

Keyboard shortcuts

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