kinesis

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProducer

func NewProducer(maxRetries int, streams map[string]string, overrideHost string, prometheusEnabled bool, metricsCollector metrics.MetricCollector, airbrakeHandler *airbrake.AirbrakeHandler, ackChan chan (*telemetry.Record), reliableAckTxTypes map[string]interface{}, logger *logrus.Logger) (telemetry.Producer, error)

NewProducer configures and tests the kinesis connection

Types

type Metrics added in v0.0.6

type Metrics struct {
	// contains filtered or unexported fields
}

Metrics stores metrics reported from this package

type Producer

type Producer struct {
	// contains filtered or unexported fields
}

Producer client to handle kinesis interactions

func (*Producer) ProcessReliableAck added in v0.3.0

func (p *Producer) ProcessReliableAck(entry *telemetry.Record)

ProcessReliableAck sends to ackChan if reliable ack is configured

func (*Producer) Produce

func (p *Producer) Produce(entry *telemetry.Record)

Produce asynchronously sends the record payload to kineses

func (*Producer) ReportError added in v0.1.14

func (p *Producer) ReportError(message string, err error, logInfo logrus.LogInfo)

ReportError to airbrake and logger

Jump to

Keyboard shortcuts

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