consumer

package
v0.0.0-...-9d09700 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 5 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 {
	StreamName      *string
	Region          *string
	AccessKeyID     string
	SecretAccessKey string
	SessionToken    string
}

type Consumer

type Consumer struct {
	ShardIterator []*ShardIterator
	ChData        chan string
	// contains filtered or unexported fields
}

func NewConsumer

func NewConsumer(cfg Config, l *zap.Logger) (*Consumer, error)

func (*Consumer) Listen

func (c *Consumer) Listen()

type ShardIterator

type ShardIterator struct {
	ID       string
	Iterator *kinesis.GetShardIteratorOutput
	Position *string
}

Jump to

Keyboard shortcuts

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