kinesis

package
v1.0.0-alpha-7 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

func NewEvent

func NewEvent(c kinesis.Client, options *Options) repository.Event

NewEvent returns a initialized client

func RandomPartitionKeyValue

func RandomPartitionKeyValue() bool

Types

type Client

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

func NewClient

func NewClient(c kinesis.Client, options *Options) *Client

func (*Client) Publish

func (p *Client) Publish(ctx context.Context, outs []*v2.Event) (err error)

type Options

type Options struct {
	RandomPartitionKey bool `config:"randompartitionkey"`
}

func DefaultOptions

func DefaultOptions() (*Options, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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