csv

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxLineSize    = 10 << 20 // 10MB max line size
	DefaultMapSize = 16       // Default size for JSON object maps
	FlushInterval  = time.Second
	LogInterval    = 100000 // Log every 100k lines
)

Variables

View Source
var (
	ErrNoInput = errors.New("no input files found")
)

Functions

This section is empty.

Types

type ProcessStats

type ProcessStats struct {
	LinesProcessed int64
	BadLines       int64
	BytesProcessed int64
	FileSize       int64
	Created        time.Time
}

ProcessStats holds processing statistics

type Processor

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

Processor handles the conversion of Reddit data to CSV

func New

func New(ctx *c.Context, deps *c.Dependencies) (*Processor, error)

New creates a new CSV filter instance

func (*Processor) Run

func (p *Processor) Run(ctx context.Context) error

Run executes the processing pipeline

Jump to

Keyboard shortcuts

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