api

package
v0.1.42 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortOnAge added in v0.1.29

func SortOnAge(fileEntityMap map[string]FileEntity) []string

Types

type DAG added in v0.1.39

type DAG struct {
	Nodes []DAGNode
}

type DAGNode added in v0.1.39

type DAGNode struct {
	//	out               []DAGNode
	Name          string
	NodeProcessor NodeProcessor
}

type FileEntity

type FileEntity struct {
	Name      string
	UnixMilli int64
	Size      int64
	Lines     int64
	Sum       []byte
	Header    string
	Footer    string
	HashName  bool
	HasSize   bool
	HasLines  bool
	HasSum    bool
	HasHeader bool
	HasFooter bool
}

type IOEvent

type IOEvent interface {
	Setup(customParams interface{}) bool
	Process(reader io.Reader, customParams interface{}) bool
}

type NodeProcessor added in v0.1.39

type NodeProcessor interface {
	Setup(customParams interface{}) error
	Process() error
}

type PipelineProcessor added in v0.1.39

type PipelineProcessor struct {
	IOEventImpl   []IOEvent
	ProcessorImpl NodeProcessor
}

func (PipelineProcessor) Process added in v0.1.39

func (fa PipelineProcessor) Process() error

func (PipelineProcessor) Setup added in v0.1.39

func (fa PipelineProcessor) Setup(customParams interface{}) error

type Thund added in v0.1.39

type Thund interface {
	Deploy(dag DAG, customParams interface{}) error
	Start() error
}

Jump to

Keyboard shortcuts

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