kinesis

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

Client is an interface to *kinesis.Client

type Opt

type Opt func(*Publisher) error

func WithPublishTimeout

func WithPublishTimeout(timeout time.Duration) Opt

func WithShards

func WithShards(n uint32) Opt

func WithStreamAutocreate

func WithStreamAutocreate(autocreate bool) Opt

func WithStreamMode

func WithStreamMode(mode types.StreamMode) Opt

func WithStreamPattern

func WithStreamPattern(pattern string) Opt

func WithStreamProbleInterval

func WithStreamProbleInterval(interval time.Duration) Opt

type Publisher

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

func New

func New(client Client, opts ...Opt) (*Publisher, error)

func (*Publisher) Close

func (*Publisher) Close() error

func (*Publisher) Name

func (*Publisher) Name() string

func (*Publisher) ProduceBulk

func (p *Publisher) ProduceBulk(events []*pb.Event, connGroup string) error

Jump to

Keyboard shortcuts

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