kinesis

package
v1.13.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Stream       string
	UseMessageID bool
}

Config is the config that is required to send data to Kinesis

type KinesisClient added in v1.0.2

type KinesisClient interface {
	PutRecord(input *kinesis.PutRecordInput) (*kinesis.PutRecordOutput, error)
}

type KinesisProducer added in v1.0.2

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

func NewProducer added in v0.1.10

func NewProducer(destination *backendconfig.DestinationT, o common.Opts) (*KinesisProducer, error)

NewProducer creates a producer based on destination config

func (*KinesisProducer) Close added in v1.2.0

func (*KinesisProducer) Close() error

func (*KinesisProducer) Produce added in v1.0.2

func (producer *KinesisProducer) Produce(jsonData json.RawMessage, destConfig interface{}) (int, string, string)

Produce creates a producer and send data to Kinesis.

Jump to

Keyboard shortcuts

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