Review funkt
This commit is contained in:
26
node_modules/ioredis/built/tracing.d.ts
generated
vendored
Normal file
26
node_modules/ioredis/built/tracing.d.ts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import type { CommandParameter } from "./types";
|
||||
export declare function sanitizeArgs(commandName: string, args: CommandParameter[]): string[];
|
||||
export interface CommandTraceContext {
|
||||
command: string;
|
||||
args: string[];
|
||||
database: number;
|
||||
serverAddress: string;
|
||||
serverPort: number | undefined;
|
||||
}
|
||||
export interface BatchOperationContext {
|
||||
batchMode: "MULTI";
|
||||
batchSize: number;
|
||||
database: number;
|
||||
serverAddress: string;
|
||||
serverPort: number | undefined;
|
||||
}
|
||||
export interface ConnectTraceContext {
|
||||
serverAddress: string;
|
||||
serverPort: number | undefined;
|
||||
connectionEpoch: number;
|
||||
}
|
||||
type CommandContext = CommandTraceContext;
|
||||
export declare function traceCommand<T>(fn: () => Promise<T>, contextFactory: () => CommandContext): Promise<T>;
|
||||
export declare function traceBatch<T>(fn: () => Promise<T>, contextFactory: () => BatchOperationContext): Promise<T>;
|
||||
export declare function traceConnect<T>(fn: () => Promise<T>, contextFactory: () => ConnectTraceContext): Promise<T>;
|
||||
export {};
|
||||
Reference in New Issue
Block a user