parser

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package parser is transformers collection of parsing any type of social_engineering_data to our own data struct

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentQuery

type DocumentQuery struct {
	// Query string like jquery csv_column_name
	Query string

	// If Query string should be used as int to index the record. when Split is or other things.
	Index int

	// TagName is the tag name of the struct field which will be set with the extracted data.
	TagName string

	// Value is the value of the struct field. And This attribute will hold the query result.
	Value any
}

DocumentQuery is the struct that holds the query to be executed and the value of query result.

type RawDataParser

type RawDataParser interface {

	// Close func will close the file io and destruct the data flow Scanners
	Close()

	// InitIndex Set the selectors index
	// Not Required And can be empty
	InitIndex([]DocumentQuery)

	// Select func will select the data from the record.
	// Read RawDataParser one-Lined Record
	// and using DocumentQuery
	// to select the values from the record.
	// Value will in query.Selector[i].value
	// using query.Selector[i].GetValue to get the value.
	// if EOF or Other error, will got error != nil.
	Select([]DocumentQuery) error

	// CurrentLine func will return the current decoding record.
	CurrentLine() string
}

RawDataParser is interface for real data processor.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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