arquivei / beamapp

An Apache Bream application wrapper using go-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

beamapp

DEPRECATED: Please use https://github.com/arquivei/arqbeam-app

An Apache Bream application wrapper using go-app.

This further extends go-app project to create Apache Beam applications.

TL;DR

package main

import (
	"context"
	"os"
	"os/signal"

	"github.com/arquivei/beamapp"
)

var (
	version = "development"
	config struct {
		beamapp.Config
		YourCustomConfig string
		SomeSecretConfig int           `secret:"true"`
		Timeout          time.Duration `default:"3m"`
	}
)

func main() {
	beamapp.Bootstrap(version, &config)

	p := getPipeline()

	beamapp.Run(p)
}

All Apache Beam flags are mapped to the config struct by embedding beamapp.Config. Use -h to see all values and their default values.

Comments, discussions, issues and pull-requests are welcomed.

About

An Apache Bream application wrapper using go-app

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%