Documentation ¶
Index ¶
- type BasicProcessor
- type CsvSource
- type Destination
- type DynamoDBDestination
- type ErrorDestination
- type ErrorSource
- type ErrorTransformer
- type FilterProcessor
- type IdentityTransformer
- type Json
- type MultiTransformer
- type NoMoreSourceError
- type Processor
- type Source
- type StringDestination
- type StringSource
- type TransformProcessor
- type Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicProcessor ¶
type BasicProcessor struct { Source Destination }
func (*BasicProcessor) Process ¶
func (s *BasicProcessor) Process(input interface{}) error
type Destination ¶
type Destination interface {
Put(p interface{}) error
}
type DynamoDBDestination ¶
func (*DynamoDBDestination) Put ¶
func (d *DynamoDBDestination) Put(p interface{}) error
type ErrorDestination ¶
type ErrorDestination struct {
Output error
}
func (*ErrorDestination) Put ¶
func (s *ErrorDestination) Put(p interface{}) error
type ErrorSource ¶
type ErrorSource struct {
Output error
}
func (*ErrorSource) Fetch ¶
func (s *ErrorSource) Fetch(p interface{}) error
type ErrorTransformer ¶
type ErrorTransformer struct{}
func (*ErrorTransformer) Transform ¶
func (m *ErrorTransformer) Transform(input interface{}) (interface{}, error)
type FilterProcessor ¶
type FilterProcessor struct { Source FilterConditionFunc func(input interface{}) bool Destination }
func (*FilterProcessor) Process ¶
func (s *FilterProcessor) Process(input interface{}) error
type IdentityTransformer ¶
type IdentityTransformer struct {
Transformers []Transformer
}
func (*IdentityTransformer) Transform ¶
func (m *IdentityTransformer) Transform(input interface{}) (interface{}, error)
type MultiTransformer ¶
type MultiTransformer struct {
Transformers []Transformer
}
func (*MultiTransformer) Transform ¶
func (m *MultiTransformer) Transform(input interface{}) (interface{}, error)
type NoMoreSourceError ¶
type NoMoreSourceError struct { }
func (NoMoreSourceError) Error ¶
func (n NoMoreSourceError) Error() string
type StringDestination ¶
type StringDestination struct {
Output *string
}
func (*StringDestination) Put ¶
func (s *StringDestination) Put(p interface{}) error
type StringSource ¶
type StringSource struct {
Output string
}
func (*StringSource) Fetch ¶
func (s *StringSource) Fetch(p interface{}) error
type TransformProcessor ¶
type TransformProcessor struct { Source Transformer Destination }
func (*TransformProcessor) Process ¶
func (s *TransformProcessor) Process(input interface{}) error
type Transformer ¶
type Transformer interface {
Transform(input interface{}) (interface{}, error)
}
Click to show internal directories.
Click to hide internal directories.