1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-07-02 05:43:37 +00:00
Files
musix-oss/node_modules/google-gax/build/src/streamingCalls/streamingApiCaller.d.ts
MatteZ02 50b9bed483 Updated
2019-10-10 16:43:04 +03:00

20 lines
913 B
TypeScript

import { APICaller, ApiCallerSettings } from '../apiCaller';
import { APICallback, CancellableStream, GRPCCall, SimpleCallbackFunction } from '../apitypes';
import { StreamDescriptor } from './streamDescriptor';
import { StreamProxy } from './streaming';
export declare class StreamingApiCaller implements APICaller {
descriptor: StreamDescriptor;
/**
* An API caller for methods of gRPC streaming.
* @private
* @constructor
* @param {StreamDescriptor} descriptor - the descriptor of the method structure.
*/
constructor(descriptor: StreamDescriptor);
init(settings: ApiCallerSettings, callback: APICallback): StreamProxy;
wrap(func: GRPCCall): GRPCCall;
call(apiCall: SimpleCallbackFunction, argument: {}, settings: {}, stream: StreamProxy): void;
fail(stream: CancellableStream, err: Error): void;
result(stream: CancellableStream): CancellableStream;
}