https://github.com/mh-cbon/plumber
builds pipes to transform a data stream
https://github.com/mh-cbon/plumber
stream-processing
Last synced: 4 months ago
JSON representation
builds pipes to transform a data stream
- Host: GitHub
- URL: https://github.com/mh-cbon/plumber
- Owner: mh-cbon
- License: mit
- Created: 2017-04-27T11:15:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-29T13:33:17.000Z (about 9 years ago)
- Last Synced: 2024-06-20T16:45:34.629Z (almost 2 years ago)
- Topics: stream-processing
- Language: Go
- Homepage: https://mh-cbon.github.io/plumber/
- Size: 38.1 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.e.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
---
License: MIT
LicenseFile: LICENSE
LicenseColor: yellow
---
# {{.Name}}
{{template "badge/travis" .}} {{template "badge/appveyor" .}} {{template "badge/goreport" .}} {{template "badge/godoc" .}} {{template "license/shields" .}}
{{pkgdoc "plumber.go"}}
# {{toc 5}}
# Install
{{template "go/install" .}}
# Generator
To help you to deal with the step of interface implementation,
`plumber` comes with a command line program to generate your own typed pipes.
## Usage
#### $ {{exec "plumber" "-help" | color "sh"}}
## Cli examples
```sh
# Create a pipe of *tomate.SuperStruct in the package mysuperpkg
plumber - *tomate.SuperStruct
```
# API example
Following example reads a `source` of `[]byte`, os.Stdin,
as a list of versions, one per line,
manipulates and transforms the chunks
until the data is written on the `sink`, os.Stdout.
#### > {{cat "demo/main.go" | color "go"}}
Following code is the implementation of various
pipe `transformer` that works with `*semver.Version` type.
#### > {{cat "demo/version.go" | color "go"}}
Following is the generated code to build pipes
to work with `*semver.Version` values.
#### > {{cat "demo/semver_gen.go" | color "go"}}
# Recipes
#### Release the project
```sh
gump patch -d # check
gump patch # bump
```
# History
[CHANGELOG](CHANGELOG.md)