Documentation ¶
Index ¶
- Constants
- func NewSource() sdk.Source
- func Specification() sdk.Specification
- type Config
- type RecordConfig
- type Source
- func (s *Source) Ack(ctx context.Context, position sdk.Position) error
- func (s *Source) Configure(_ context.Context, config map[string]string) error
- func (s *Source) Open(_ context.Context, _ sdk.Position) error
- func (s *Source) Read(ctx context.Context) (sdk.Record, error)
- func (s *Source) Teardown(_ context.Context) error
Constants ¶
View Source
const ( RecordCount = "recordCount" ReadTime = "readTime" SleepTime = "burst.sleepTime" GenerateTime = "burst.generateTime" FormatType = "format.type" FormatOptions = "format.options" FormatRaw = "raw" FormatStructured = "structured" FormatFile = "file" )
Variables ¶
This section is empty.
Functions ¶
func Specification ¶
func Specification() sdk.Specification
Specification returns the Plugin's Specification.
Types ¶
type Config ¶
type RecordConfig ¶ added in v0.1.1
type RecordConfig struct { FormatType string FormatOptions interface{} }
func ParseRecordConfig ¶ added in v0.1.1
func ParseRecordConfig(formatType, formatOptions string) (RecordConfig, error)
Click to show internal directories.
Click to hide internal directories.