Constructor
new Trace(options, traceStruct)
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | Error, warning and debug function references |
traceStruct |
Object | Trace node to process |
- Source:
Members
(readonly) attrib :Object
Provides default `attrib` property to ensure node processing, always returns
current meta values
Type:
- Object
- Source:
attrib
Continues node walking recursion through the current attrib node
- Source:
(readonly) data :Object
Returns all processed data, including child data, of the this class
Type:
- Object
- Source:
(readonly) hop :Array
Returns the current hop array, allowing recursion to continue
Type:
- Array
- Source:
hop
Calls the addHop function to update the hop array, looping if needed
- Source:
hopArray :Array
Hop property default
Type:
- Array
- Source:
(readonly) meta :Object
Returns the trace meta as an object
Type:
- Object
- Source:
options :Object
Merge default options with given options
Type:
- Object
- Source:
port :Number
Port property default
Type:
- Number
- Source:
proto :String
Portocol property default
Type:
- String
- Source:
Methods
addHop(struct)
Updates the hopArray, storing the new hop details
Parameters:
Name | Type | Description |
---|---|---|
struct |
Object | Current `hop` node |
- Source:
parseStruct(curStruct)
Recursive parsing function, sets the value of this classes properties (if
it exists), or calls the proper processing function, or builds required
child classes for further processing
Parameters:
Name | Type | Description |
---|---|---|
curStruct |
Object | Current node being processed |
- Source: