bundledImpl

package
v0.1.37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 29 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FullDestinPath added in v0.1.2

func FullDestinPath(destDir string, fullSourcePath string, extension string) string

extension example strconv.Itoa(key)+."parquet"

func GetClient added in v0.1.11

func GetClient(namenode string, user string) (*hdfs.Client, error)

Code copied from colinmarc/hdfs

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
}

func NewHDFS added in v0.1.11

func NewHDFS() *HDFS

func (*HDFS) FilterListFiles added in v0.1.31

func (hdfsStruct *HDFS) FilterListFiles() (map[string]api.FileEntity, error)

TODO use https://github.com/deckarep/golang-set

func (*HDFS) FindWorkingNamenode added in v0.1.25

func (hdfsStruct *HDFS) FindWorkingNamenode()

func (HDFS) GetFileSet added in v0.1.11

func (hdfsStruct HDFS) GetFileSet() map[string]int64

func (HDFS) GetFilteredFileSet added in v0.1.11

func (hdfsStruct HDFS) GetFilteredFileSet(filter string) map[string]int64

func (HDFS) ListFiles added in v0.1.11

func (hdfsStruct HDFS) ListFiles() (map[string]api.FileEntity, error)

func (*HDFS) Watch added in v0.1.11

func (hdfsStruct *HDFS) Watch(eventHandlers []api.IOEvent) (bool, error)

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

func (*LocalFilesystem) Watch added in v0.1.7

func (lf *LocalFilesystem) Watch(eventHandlers []api.IOEvent) (bool, error)

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
}

func NewS3 added in v0.1.2

func NewS3() *S3

func (S3) GetFileSet added in v0.1.2

func (s3 S3) GetFileSet(minioclient *minio.Client) map[string]int64

func (S3) GetFilteredFileSet added in v0.1.2

func (s3 S3) GetFilteredFileSet(filter string, minioClient *minio.Client) map[string]int64

func (S3) ListFiles added in v0.1.2

func (s3 S3) ListFiles(minioClient *minio.Client) map[string]api.FileEntity

func (*S3) Watch added in v0.1.2

func (s3 *S3) Watch(eventHandlers []api.IOEvent) (bool, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL