etcd3 API - v2.0.0
    Preparing search index...

    Interface ICallable<T>

    interface ICallable<T> {
        callOptionsFactory: CallOptionsFactory | undefined;
        exec<T>(
            service: "KV" | "Watch" | "Lease" | "Cluster" | "Maintenance" | "Auth",
            method: string,
            params: unknown,
            options?: CallOptions,
        ): Promise<T>;
        markFailed(resource: T, error: Error): void;
        withConnection<R>(
            service: "KV" | "Watch" | "Lease" | "Cluster" | "Maintenance" | "Auth",
            fn: (
                args: { client: Client; metadata: Metadata; resource: T },
            ) => R | Promise<R>,
        ): Promise<R>;
    }

    Type Parameters

    • T
    Index
    callOptionsFactory: CallOptionsFactory | undefined
    • Type Parameters

      • T

      Parameters

      • service: "KV" | "Watch" | "Lease" | "Cluster" | "Maintenance" | "Auth"
      • method: string
      • params: unknown
      • Optionaloptions: CallOptions

      Returns Promise<T>

    • Parameters

      • resource: T
      • error: Error

      Returns void

    • Type Parameters

      • R

      Parameters

      • service: "KV" | "Watch" | "Lease" | "Cluster" | "Maintenance" | "Auth"
      • fn: (args: { client: Client; metadata: Metadata; resource: T }) => R | Promise<R>

      Returns Promise<R>