https://github.com/remind101/kinesis
Go program and library for streaming to Amazon Kinesis.
https://github.com/remind101/kinesis
Last synced: 2 months ago
JSON representation
Go program and library for streaming to Amazon Kinesis.
- Host: GitHub
- URL: https://github.com/remind101/kinesis
- Owner: remind101
- Created: 2016-03-01T21:53:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-04T01:51:01.000Z (over 10 years ago)
- Last Synced: 2025-02-28T00:56:18.351Z (over 1 year ago)
- Language: Go
- Size: 5.86 KB
- Stars: 2
- Watchers: 11
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kinesis for Unix
This is a small Go library and unix command for streaming to an Amazon Kinesis stream.
## Installation
```console
$ go get -u github.com/remind101/kinesis
```
## Usage
Stream a file to a kinesis stream.
```console
$ cat /var/log/syslog | kinesis
```
Stream to a particular partition key.
```console
$ cat /var/log/syslog | kinesis -p
```
## Go Library
The Go library exposes an io.Writer implementation that writes to an Amazon Kinesis stream.
```go
import "github.com/remind101/kinesis/kinesis"
stream = bufio.NewWriter(kinesis.NewDefaultWriter("streamName", "partitionKey"))
io.Copy(stream, os.Stdin)
```