Help us shape the future of Go! Take the 2026 Go Developer Survey

kinesis

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

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

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

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSKinesis

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

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

func NewAWSKinesis

func NewAWSKinesis(logger logger.Logger) *AWSKinesis

NewAWSKinesis returns a new AWS Kinesis instance

func (*AWSKinesis) Init

func (a *AWSKinesis) Init(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(handler func(*bindings.ReadResponse) ([]byte, error)) error

func (*AWSKinesis) Subscribe

func (a *AWSKinesis) Subscribe(ctx context.Context, streamDesc kinesis.StreamDescription, handler func(*bindings.ReadResponse) ([]byte, error)) error

Subscribe to all shards

Jump to

Keyboard shortcuts

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