Documentation
¶
Overview ¶
Package json 提供从 JSON 文件读取数据的 Source
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// FilePath JSON 文件路径,支持 glob 模式
FilePath string `json:"file_path"`
// Format 格式: "lines" (JSON Lines) 或 "array" (JSON 数组),默认 "lines"
Format string `json:"format"`
// BatchSize 每次读取的批次大小,0 表示无限制
BatchSize int `json:"batch_size"`
}
Config Source 的配置
type SliceSource ¶
type SliceSource struct {
// contains filtered or unexported fields
}
SliceSource 从内存中的 JSON 数据读取,用于测试
Click to show internal directories.
Click to hide internal directories.