Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDestination ¶
func RegisterDestination(name string, factory DestinationFactory)
func RegisterSource ¶
func RegisterSource(name string, factory SourceFactory)
Types ¶
type Destination ¶
type Destination interface {
Init(config map[string]interface{}, model *models.Model) error
StoreData(data []map[string]interface{}) (int, int, error)
RunSchema() error
Close() error
}
Destination interface
func GetDestination ¶
func GetDestination(name string) (Destination, error)
type DestinationFactory ¶
type DestinationFactory func() Destination
type Source ¶
type Source interface {
Init(config map[string]interface{}, model *models.Model) error
FetchData(opts map[string]interface{}) ([]map[string]interface{}, error)
Close() error
}
Source interface
type SourceFactory ¶
type SourceFactory func() Source
Click to show internal directories.
Click to hide internal directories.