Documentation ¶
Index ¶
- Constants
- type EventLoader
- type EventReader
- type Factory
- func (m *Factory) NewEventLoader(w LoadFileWriter, loadFileType, destinationType string) EventLoader
- func (m *Factory) NewEventReader(r io.Reader, destType string) EventReader
- func (m *Factory) NewLoadFileWriter(loadFileType, outputFilePath string, schema model.TableSchema, destType string) (LoadFileWriter, error)
- type LoadFileWriter
Constants ¶
View Source
const ( UUIDTsColumn = "uuid_ts" LoadedAtColumn = "loaded_at" BQLoadedAtFormat = "2006-01-02 15:04:05.999999 Z" BQUuidTSFormat = "2006-01-02 15:04:05 Z" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventLoader ¶
type EventLoader interface { IsLoadTimeColumn(columnName string) bool GetLoadTimeFormat(columnName string) string AddColumn(columnName, columnType string, val interface{}) AddRow(columnNames, values []string) AddEmptyColumn(columnName string) WriteToString() (string, error) Write() error }
EventLoader is an interface for loading events into a load file It's used to load singular BatchRouterEvent events into a load file
type EventReader ¶
EventReader is an interface for reading events from a load file
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func (*Factory) NewEventLoader ¶
func (m *Factory) NewEventLoader(w LoadFileWriter, loadFileType, destinationType string) EventLoader
func (*Factory) NewEventReader ¶
func (m *Factory) NewEventReader(r io.Reader, destType string) EventReader
func (*Factory) NewLoadFileWriter ¶
func (m *Factory) NewLoadFileWriter(loadFileType, outputFilePath string, schema model.TableSchema, destType string) (LoadFileWriter, error)
Click to show internal directories.
Click to hide internal directories.