exthos
Version:
stream processing in nodejs using the power of golang
48 lines • 1.21 kB
TypeScript
declare type TNoop = {
label?: string;
noop: {};
};
declare type TBloblang = {
label?: string;
bloblang: string;
};
declare type TArchive = {
label?: string;
archive: {
format: "binary" | "concatenate" | "json_array" | "lines" | "tar" | "zip";
path?: string;
};
};
declare type TLog = {
label?: string;
log: {
level?: "FATAL" | "ERROR" | "WARN" | "INFO" | "DEBUG" | "TRACE" | "ALL";
fields_mapping?: string;
message?: string;
};
};
declare type TSubprocess = {
label?: string;
subprocess: {
name: string;
args: string[];
max_buffer: number;
codec_send: "lines" | "length_prefixed_uint32_be" | "netstring";
codec_recv: "lines" | "length_prefixed_uint32_be" | "netstring";
};
};
declare type TJavascript = {
label?: string;
javascript: string;
};
declare type TBranch = {
label?: string;
branch: {
request_map?: string;
processors: TProcessor[];
result_map?: string;
};
};
declare type TProcessor = TNoop | TBloblang | TArchive | TLog | TSubprocess | TJavascript | TBranch;
export { TProcessor };
//# sourceMappingURL=processors.d.ts.map