Ejemplo n.º 1
0
func main() {
	// nothing to do really as we use it as a library
	stream.Init()

	var wg sync.WaitGroup
	wg.Add(3)

	go func() {
		stream.RunSource(dummySource)
		wg.Done()
	}()

	go func() {
		stream.RunSink(dummySink)
		wg.Done()
	}()

	go func() {
		stream.RunProcessor(dummyProcessor)
		wg.Done()
	}()

	wg.Wait()
	stream.Cleanup()
}
func main() {
	stream.Init()
	stream.RunSource(timeSource)
	stream.Cleanup()
}
func main() {
	stream.Init()
	stream.RunSource(httpSource)
	stream.Cleanup()
}