chunker

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	Start *StartChunk
	Data  *DataChunk
	End   *EndChunk

	// Internal chunker error.
	Error error
}

type ChunkIterator added in v0.0.18

type ChunkIterator interface {
	Next(ctx context.Context) bool
	Current() Chunk
}

type Chunker

type Chunker interface {
	GenerateChunks(ctx context.Context, parseStream parser.StreamResultIterator) ChunkIterator
}

type DataChunk

type DataChunk struct {
	FilePath string
	Data     string
}

type EndChunk

type EndChunk struct {
	FilePath string
	Error    error
}

type StartChunk

type StartChunk struct {
	FilePath string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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