worker

package
v0.0.0-...-89257ae Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FormattedError

type FormattedError struct {
	Error     string
	Processor string
}

type ProcessStarted

type ProcessStarted struct {
	Name            string
	ProcessId       string
	TasksCount      int
	TasksTerminated int
}

type TaskEnded

type TaskEnded struct {
	Name      string
	Source    string
	ProcessId string
	Errors    []string
}

type TaskStarted

type TaskStarted struct {
	ProcessId     string
	Tag           string
	Step          dsl.Step
	ProcessConfig dsl.ProcessConfig
	OutputFolder  string
}

type WorkerPool

type WorkerPool struct {
	// PoolSize int
	// Workers []Worker
	Capacity uint32
	// contains filtered or unexported fields
}

func NewWorkerPool

func NewWorkerPool(workersCount uint32) *WorkerPool

func (*WorkerPool) LoadProcessors

func (p *WorkerPool) LoadProcessors() error

func (*WorkerPool) Wait

func (p *WorkerPool) Wait()

func (*WorkerPool) Work

func (p *WorkerPool) Work(tStart <-chan TaskStarted, tEnd chan<- TaskEnded, splunk *core.Splunkargs, outputFolder string)

Jump to

Keyboard shortcuts

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