kinesis

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ExtendedFanout - dedicated throughput through data stream api.
	ExtendedFanout = "extended"

	// SharedThroughput - shared throughput using checkpoint and monitoring.
	SharedThroughput = "shared"
)

Variables

This section is empty.

Functions

func NewAWSKinesis

func NewAWSKinesis(logger logger.Logger) bindings.InputOutputBinding

NewAWSKinesis returns a new AWS Kinesis instance.

Types

type AWSKinesis

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

AWSKinesis allows receiving and sending data to/from AWS Kinesis stream.

func (*AWSKinesis) Close added in v1.11.0

func (a *AWSKinesis) Close() error

func (*AWSKinesis) GetComponentMetadata added in v1.11.0

func (a *AWSKinesis) GetComponentMetadata() (metadataInfo metadata.MetadataMap)

GetComponentMetadata returns the metadata of the component.

func (*AWSKinesis) Init

func (a *AWSKinesis) Init(ctx context.Context, metadata bindings.Metadata) error

Init does metadata parsing and connection creation.

func (*AWSKinesis) Invoke

func (*AWSKinesis) Operations

func (a *AWSKinesis) Operations() []bindings.OperationKind

func (*AWSKinesis) Read

func (a *AWSKinesis) Read(ctx context.Context, handler bindings.Handler) (err error)

func (*AWSKinesis) Subscribe

func (a *AWSKinesis) Subscribe(ctx context.Context, streamDesc kinesis.StreamDescription, handler bindings.Handler) error

Subscribe to all shards.

Jump to

Keyboard shortcuts

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