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.RunProcessor(bridge) stream.Cleanup() }
func main() { log.SetLevel(log.DebugLevel) stream.Init() stream.RunProcessor(httpclient) stream.Cleanup() }