Documentation ¶
Index ¶
- func FullDestinPath(destDir string, fullSourcePath string, extension string) string
- func GetClient(namenode string, user string) (*hdfs.Client, error)
- type ArrayToRust
- type DummyEvent
- type FetchAndExecEvent
- type HDFS
- func (hdfsStruct *HDFS) FilterListFiles() (map[string]api.FileEntity, error)
- func (hdfsStruct *HDFS) FindWorkingNamenode()
- func (hdfsStruct HDFS) GetFileSet() map[string]int64
- func (hdfsStruct HDFS) GetFilteredFileSet(filter string) map[string]int64
- func (hdfsStruct HDFS) ListFiles() (map[string]api.FileEntity, error)
- func (hdfsStruct *HDFS) Process() error
- func (hdfsStruct *HDFS) Setup() error
- type KafkaEmitEvent
- type LocalFilesystem
- type Metrics
- type MetricsEmitEvent
- type RCLONE
- type S3
- type StreamAndExecEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FullDestinPath ¶ added in v0.1.2
extension example strconv.Itoa(key)+."parquet"
Types ¶
type ArrayToRust ¶ added in v0.1.35
type ArrayToRust struct { }
func (*ArrayToRust) Process ¶ added in v0.1.35
func (atr *ArrayToRust) Process(reader io.Reader, customParams interface{}) bool
func (*ArrayToRust) Setup ¶ added in v0.1.35
func (atr *ArrayToRust) Setup(customParams interface{}) bool
type DummyEvent ¶
type DummyEvent struct { }
func (*DummyEvent) Process ¶
func (de *DummyEvent) Process(reader io.Reader, customParams interface{}) bool
func (*DummyEvent) Setup ¶
func (de *DummyEvent) Setup(customParams interface{}) bool
type FetchAndExecEvent ¶ added in v0.1.3
type FetchAndExecEvent struct { DestinationFolder string CmdTemplate string Data map[string]interface{} Tmpl *template.Template }
func (*FetchAndExecEvent) Process ¶ added in v0.1.3
func (fae *FetchAndExecEvent) Process(reader io.Reader, customParams interface{}) bool
func (*FetchAndExecEvent) Setup ¶ added in v0.1.3
func (fae *FetchAndExecEvent) Setup(customParams interface{}) bool
type HDFS ¶ added in v0.1.11
type HDFS struct { Namenode string WatchFolder string MarkerFolder string ExcludeFolder string GraceMilliSec int HDFSClient *hdfs.Client Ctx context.Context User string // contains filtered or unexported fields }
func (*HDFS) FilterListFiles ¶ added in v0.1.31
func (hdfsStruct *HDFS) FilterListFiles() (map[string]api.FileEntity, error)
func (*HDFS) FindWorkingNamenode ¶ added in v0.1.25
func (hdfsStruct *HDFS) FindWorkingNamenode()
func (HDFS) GetFileSet ¶ added in v0.1.11
func (HDFS) GetFilteredFileSet ¶ added in v0.1.11
type KafkaEmitEvent ¶
type KafkaEmitEvent struct { Data map[string]interface{} Tmpl *template.Template Producer *kafka.Writer Topic string // contains filtered or unexported fields }
func (*KafkaEmitEvent) Process ¶
func (kee *KafkaEmitEvent) Process(reader io.Reader, customParams interface{}) bool
func (*KafkaEmitEvent) Setup ¶
func (kee *KafkaEmitEvent) Setup(customParams interface{}) bool
type LocalFilesystem ¶ added in v0.1.7
type LocalFilesystem struct { WatchFolder string ExcludeFolder string GraceMilliSec int Ctx context.Context }
func NewLocalFilesystem ¶ added in v0.1.7
func NewLocalFilesystem() *LocalFilesystem
func (*LocalFilesystem) ListFiles ¶ added in v0.1.7
func (lf *LocalFilesystem) ListFiles() map[string]api.FileEntity
type Metrics ¶ added in v0.1.38
type Metrics struct { FilesMovedOK prometheus.Counter FileSizeOK prometheus.Counter LineCountOK prometheus.Counter AllocMib prometheus.Gauge TotalAllocMib prometheus.Gauge SysMib prometheus.Gauge NumGC prometheus.Gauge }
func InitMetrics ¶ added in v0.1.38
func InitMetrics() Metrics
type MetricsEmitEvent ¶ added in v0.1.38
type MetricsEmitEvent struct { Metrics *Metrics WaitGroup *sync.WaitGroup // contains filtered or unexported fields }
func (*MetricsEmitEvent) Process ¶ added in v0.1.38
func (mee *MetricsEmitEvent) Process(reader io.Reader, customParams interface{}) bool
func (*MetricsEmitEvent) Setup ¶ added in v0.1.38
func (mee *MetricsEmitEvent) Setup(customParams interface{}) bool
type S3 ¶ added in v0.1.2
type S3 struct { Endpoint string UseSSL bool BucketName string User string Password string Token string WatchFolder string MarkerFolder string ExcludeFolder string GraceMilliSec int MinioClient *minio.Client Ctx context.Context // contains filtered or unexported fields }
func (S3) GetFileSet ¶ added in v0.1.2
func (S3) GetFilteredFileSet ¶ added in v0.1.2
type StreamAndExecEvent ¶ added in v0.1.7
type StreamAndExecEvent struct { CmdTemplate string Data map[string]interface{} Tmpl *template.Template }
func (*StreamAndExecEvent) Process ¶ added in v0.1.7
func (sae *StreamAndExecEvent) Process(reader io.Reader, customParams interface{}) bool
func (*StreamAndExecEvent) Setup ¶ added in v0.1.7
func (sae *StreamAndExecEvent) Setup(customParams interface{}) bool
Click to show internal directories.
Click to hide internal directories.