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.
Click to show internal directories.
Click to hide internal directories.