-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25f3a19
commit 6fc4a2a
Showing
9 changed files
with
165 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,159 +1,182 @@ | ||
/** | ||
* ATTENTION: | ||
* REFERENCE TO `DltFilterConfig` HAS BEEN ADDED MANUALLY | ||
* BECAUSE THIS TYPE IS NOT GENERATED BY `ts_rs`. | ||
*/ | ||
import { DltFilterConfig } from './dlt'; | ||
|
||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
|
||
/** | ||
* Settings for the DLT parser. | ||
*/ | ||
export type DltParserSettings = { | ||
/** | ||
* Configuration for filtering DLT messages. | ||
*/ | ||
filter_config: DltFilterConfig, | ||
/** | ||
* Paths to FIBEX files for additional interpretation of `payload` content. | ||
*/ | ||
fibex_file_paths: Array<string> | null, | ||
/** | ||
* Indicates whether the source contains a `StorageHeader`. Set to `true` if applicable. | ||
*/ | ||
with_storage_header: boolean, | ||
/** | ||
* Timezone for timestamp adjustment. If specified, timestamps are converted to this timezone. | ||
*/ | ||
tz: string | null, }; | ||
export type DltParserSettings = { | ||
/** | ||
* Configuration for filtering DLT messages. | ||
*/ | ||
filter_config: DltFilterConfig; | ||
/** | ||
* Paths to FIBEX files for additional interpretation of `payload` content. | ||
*/ | ||
fibex_file_paths: Array<string> | null; | ||
/** | ||
* Indicates whether the source contains a `StorageHeader`. Set to `true` if applicable. | ||
*/ | ||
with_storage_header: boolean; | ||
/** | ||
* Timezone for timestamp adjustment. If specified, timestamps are converted to this timezone. | ||
*/ | ||
tz: string | null; | ||
}; | ||
|
||
/** | ||
* Supported file formats for observation. | ||
*/ | ||
export type FileFormat = "PcapNG" | "PcapLegacy" | "Text" | "Binary"; | ||
export type FileFormat = 'PcapNG' | 'PcapLegacy' | 'Text' | 'Binary'; | ||
|
||
/** | ||
* Multicast configuration information. | ||
* - `multiaddr`: A valid multicast address. | ||
* - `interface`: The address of the local interface used to join the multicast group. | ||
* If set to `INADDR_ANY`, the system selects an appropriate interface. | ||
*/ | ||
export type MulticastInfo = { multiaddr: string, interface: string | null, }; | ||
export type MulticastInfo = { multiaddr: string; interface: string | null }; | ||
|
||
/** | ||
* Options for observing data within a session. | ||
*/ | ||
export type ObserveOptions = { | ||
/** | ||
* The description of the data source. | ||
*/ | ||
origin: ObserveOrigin, | ||
/** | ||
* The parser configuration to be applied. | ||
*/ | ||
parser: ParserType, }; | ||
export type ObserveOptions = { | ||
/** | ||
* The description of the data source. | ||
*/ | ||
origin: ObserveOrigin; | ||
/** | ||
* The parser configuration to be applied. | ||
*/ | ||
parser: ParserType; | ||
}; | ||
|
||
/** | ||
* Describes the source of data for observation. | ||
*/ | ||
export type ObserveOrigin = { "File": [string, FileFormat, string] } | { "Concat": Array<[string, FileFormat, string]> } | { "Stream": [string, Transport] }; | ||
export type ObserveOrigin = | ||
| { File: [string, FileFormat, string] } | ||
| { Concat: Array<[string, FileFormat, string]> } | ||
| { Stream: [string, Transport] }; | ||
|
||
/** | ||
* Specifies the parser to be used for processing session data. | ||
*/ | ||
export type ParserType = { "Dlt": DltParserSettings } | { "SomeIp": SomeIpParserSettings } | { "Text": null }; | ||
export type ParserType = | ||
| { Dlt: DltParserSettings } | ||
| { SomeIp: SomeIpParserSettings } | ||
| { Text: null }; | ||
|
||
/** | ||
* Configuration for executing terminal commands. | ||
*/ | ||
export type ProcessTransportConfig = { | ||
/** | ||
* The working directory for the command. | ||
*/ | ||
cwd: string, | ||
/** | ||
* The command to execute. | ||
*/ | ||
command: string, | ||
/** | ||
* Environment variables. If empty, the default environment variables are used. | ||
*/ | ||
envs: Map<string, string>, }; | ||
export type ProcessTransportConfig = { | ||
/** | ||
* The working directory for the command. | ||
*/ | ||
cwd: string; | ||
/** | ||
* The command to execute. | ||
*/ | ||
command: string; | ||
/** | ||
* Environment variables. If empty, the default environment variables are used. | ||
*/ | ||
envs: Map<string, string>; | ||
}; | ||
|
||
/** | ||
* Configuration for serial port connections. | ||
*/ | ||
export type SerialTransportConfig = { | ||
/** | ||
* The path to the serial port. | ||
*/ | ||
path: string, | ||
/** | ||
* The baud rate for the connection. | ||
*/ | ||
baud_rate: number, | ||
/** | ||
* The number of data bits per frame. | ||
*/ | ||
data_bits: number, | ||
/** | ||
* The flow control setting. | ||
*/ | ||
flow_control: number, | ||
/** | ||
* The parity setting. | ||
*/ | ||
parity: number, | ||
/** | ||
* The number of stop bits. | ||
*/ | ||
stop_bits: number, | ||
/** | ||
* The delay in sending data, in milliseconds. | ||
*/ | ||
send_data_delay: number, | ||
/** | ||
* Whether the connection is exclusive. | ||
*/ | ||
exclusive: boolean, }; | ||
export type SerialTransportConfig = { | ||
/** | ||
* The path to the serial port. | ||
*/ | ||
path: string; | ||
/** | ||
* The baud rate for the connection. | ||
*/ | ||
baud_rate: number; | ||
/** | ||
* The number of data bits per frame. | ||
*/ | ||
data_bits: number; | ||
/** | ||
* The flow control setting. | ||
*/ | ||
flow_control: number; | ||
/** | ||
* The parity setting. | ||
*/ | ||
parity: number; | ||
/** | ||
* The number of stop bits. | ||
*/ | ||
stop_bits: number; | ||
/** | ||
* The delay in sending data, in milliseconds. | ||
*/ | ||
send_data_delay: number; | ||
/** | ||
* Whether the connection is exclusive. | ||
*/ | ||
exclusive: boolean; | ||
}; | ||
|
||
/** | ||
* Settings for the SomeIp parser. | ||
*/ | ||
export type SomeIpParserSettings = { | ||
/** | ||
* Paths to FIBEX files for additional interpretation of `payload` content. | ||
*/ | ||
fibex_file_paths: Array<string> | null, }; | ||
export type SomeIpParserSettings = { | ||
/** | ||
* Paths to FIBEX files for additional interpretation of `payload` content. | ||
*/ | ||
fibex_file_paths: Array<string> | null; | ||
}; | ||
|
||
/** | ||
* Configuration for TCP connections. | ||
*/ | ||
export type TCPTransportConfig = { | ||
/** | ||
* The address to bind the TCP connection to. | ||
*/ | ||
bind_addr: string, }; | ||
export type TCPTransportConfig = { | ||
/** | ||
* The address to bind the TCP connection to. | ||
*/ | ||
bind_addr: string; | ||
}; | ||
|
||
/** | ||
* Describes the transport source for a session. | ||
*/ | ||
export type Transport = { "Process": ProcessTransportConfig } | { "TCP": TCPTransportConfig } | { "UDP": UDPTransportConfig } | { "Serial": SerialTransportConfig }; | ||
export type Transport = | ||
| { Process: ProcessTransportConfig } | ||
| { TCP: TCPTransportConfig } | ||
| { UDP: UDPTransportConfig } | ||
| { Serial: SerialTransportConfig }; | ||
|
||
/** | ||
* Configuration for UDP connections. | ||
*/ | ||
export type UDPTransportConfig = { | ||
/** | ||
* The address to bind the UDP connection to. | ||
*/ | ||
bind_addr: string, | ||
/** | ||
* A list of multicast configurations. | ||
*/ | ||
multicast: Array<MulticastInfo>, }; | ||
export type UDPTransportConfig = { | ||
/** | ||
* The address to bind the UDP connection to. | ||
*/ | ||
bind_addr: string; | ||
/** | ||
* A list of multicast configurations. | ||
*/ | ||
multicast: Array<MulticastInfo>; | ||
}; | ||
|
||
/** | ||
* Configuration for UDP connections. | ||
*/ | ||
export type UdpConnectionInfo = { | ||
/** | ||
* A list of multicast addresses to listen on. | ||
*/ | ||
multicast_addr: Array<MulticastInfo>, }; | ||
export type UdpConnectionInfo = { | ||
/** | ||
* A list of multicast addresses to listen on. | ||
*/ | ||
multicast_addr: Array<MulticastInfo>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.