processor

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: CC0-1.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IProcessor

type IProcessor interface {
	ProcessFile(filePath string) error
}

type Processor

type Processor struct {
	KafkaProducer producer.IProducer
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(producer producer.IProducer, parsing parser.IParser) *Processor

func (*Processor) ProcessFile

func (p *Processor) ProcessFile(filePath string) error

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(kafkaProducer producer.IProducer, errorParsePath string, lock *sync.Mutex, psr parser.IParser,
	processing map[string]bool) *Worker

func (*Worker) Do

func (w *Worker) Do(files <-chan string)

Jump to

Keyboard shortcuts

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