processor

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package processor process resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BatchSize int
}

Config represent configuration for processor

type Processor

type Processor struct {
	Sources []source.Source
	Config  Config
	Storage storage.Storage
}

Processor represent resource processor

func NewProcessor

func NewProcessor(config Config, storage storage.Storage, sources []source.Source) Processor

NewProcessor construct new processor

func (*Processor) Process

func (p *Processor) Process(resourceChan chan resource.Resource)

Process start processing resources

Jump to

Keyboard shortcuts

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