Documentation ¶
Index ¶
- Constants
- func NewSource() sdk.Source
- type Config
- type Iterator
- type Source
- func (s *Source) Configure(ctx context.Context, cfg map[string]string) error
- func (s *Source) Open(ctx context.Context, position sdk.Position) error
- func (s *Source) Parameters() map[string]sdk.Parameter
- func (s *Source) Read(ctx context.Context) (sdk.Record, error)
- func (s *Source) Teardown(ctx context.Context) error
Constants ¶
View Source
const ConfigKeyBufferSize = "bufferSize"
ConfigKeyBufferSize is a config name for a buffer size.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Iterator ¶
type Iterator interface { HasNext(ctx context.Context) bool Next(ctx context.Context) (sdk.Record, error) Stop() error }
Iterator defines an iterator interface.
type Source ¶
type Source struct { sdk.UnimplementedSource // contains filtered or unexported fields }
Source operates source logic.
func (*Source) Parameters ¶
Parameters returns a map of named sdk.Parameters that describe how to configure the Source.
Click to show internal directories.
Click to hide internal directories.