input

package
v0.0.0-...-e8aa44e Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InputBufferSize = 32 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchingCSV

type BatchingCSV struct {
	FilePath       string
	CsvColumnIndex int
	TagColumnIndex int
	Separator      rune
	Offset         uint
	Len            uint
	Log            zerolog.Logger
	BatchSize      uint
	Psl            *model.PSL
}

func (BatchingCSV) Read

func (in BatchingCSV) Read(ctx common.Context) <-chan []Item

type IPRange

type IPRange struct {
	FilePath       string
	CsvColumnIndex int
	Offset         uint
	Len            uint
	Log            zerolog.Logger
}

IPRange allows

func (IPRange) Read

func (in IPRange) Read(ctx common.Context) <-chan []Item

type Item

type Item struct {
	Idx  uint
	Name model.DomainName
	Tags string
}

Jump to

Keyboard shortcuts

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