ktail

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 17 Imported by: 0

README

kinesis-tailf

tail -f command for Amazon Kinesis Data Streams.

Install

Homebrew
$ brew install fujiwara/tap/kinesis-tailf
Binary packages

Releases.

Usage

Required flags are below.

  • -stream
  • -region or AWS_REGION environment variable
Usage of kinesis-tailf:
  -end string
    	end timestamp
  -lf
    	append LF(\n) to each record
  -region string
    	region (default AWS_REGION environment variable)
  -shard-key string
    	shard key
  -start string
    	start timestamp
  -stream string
    	stream name

kinesis-tailf supports decoding packed records by Kinesis Producer Library (KPL).

kinesis-cat

cat command for putting data to Amazon Kinesis Data Streams or Kinesis Data Firehose.

Usage of kinesis-cat:
  -firehose
    	put to Firehose delivery stream
  -lf
    	append LF(\n) to each record
  -partition-key string
    	partition key
  -region string
    	region (default "ap-northeast-1")
  -stream string
    	stream name

When -partition-key is not specified, partition key will be generated from sha256 digest of data.

Licence

MIT

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LF = []byte{'\n'}
)

Functions

This section is empty.

Types

type App added in v0.1.0

type App struct {
	StreamName string
	AppendLF   bool
	// contains filtered or unexported fields
}

func New added in v0.1.0

func New(cfg aws.Config, name string) *App

func (*App) Cat added in v0.3.0

func (app *App) Cat(ctx context.Context, partitionKey string, src io.Reader) error

func (*App) CatFirehose added in v0.3.1

func (app *App) CatFirehose(ctx context.Context, _ string, src io.Reader) error

func (*App) Run added in v0.1.0

func (app *App) Run(ctx context.Context, shardKey string, startTs, endTs time.Time) error

type IterateParams

type IterateParams struct {
	StreamName     string
	ShardID        string
	StartTimestamp time.Time
	EndTimestamp   time.Time
}

Directories

Path Synopsis
cmd
Package kpl is a generated protocol buffer package.
Package kpl is a generated protocol buffer package.
lambda

Jump to

Keyboard shortcuts

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