January 2020
Intermediate to advanced
640 pages
16h 56m
English
In order to begin a new pipeline run, users are expected to provide an input source that generates the application-specific payloads that drive the pipeline. All user-defined input sources must implement the Source interface, whose definition is as follows:
type Source interface { Next(context.Context) bool Payload() Payload Error() error }
The Source interface contains the standard set of methods that you would expect for any data source that supports iteration: