parser

package
v0.80.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParserProvider

func NewParserProvider() *pp

Types

type Parser

type Parser interface {
	// ScanRecords walks through the body, extracts the document records, and writes them via mtx associating with the nodeId
	ScanRecords(ctx context.Context, mtx persistence.ModelTx, nodeId int64, body io.Reader) (int64, error)
}

Parser allows to scan data in a specific format and update the index records

type Provider

type Provider interface {
	RegisterParser(format string, p Parser)
	Parser(format string) Parser
}

Provider is a parsers holder.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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