Skip to content

Go program and library for streaming to Amazon Kinesis.

Notifications You must be signed in to change notification settings

remind101/kinesis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kinesis for Unix

This is a small Go library and unix command for streaming to an Amazon Kinesis stream.

Installation

$ go get -u github.com/remind101/kinesis

Usage

Stream a file to a kinesis stream.

$ cat /var/log/syslog | kinesis <stream>

Stream to a particular partition key.

$ cat /var/log/syslog | kinesis <stream> -p <partitionKey>

Go Library

The Go library exposes an io.Writer implementation that writes to an Amazon Kinesis stream.

import "github.com/remind101/kinesis/kinesis"

stream = bufio.NewWriter(kinesis.NewDefaultWriter("streamName", "partitionKey"))
io.Copy(stream, os.Stdin)

About

Go program and library for streaming to Amazon Kinesis.

Resources

Stars

Watchers

Forks

Packages

No packages published