-
Notifications
You must be signed in to change notification settings - Fork 51
/
clientStub.d.ts
21 lines (21 loc) · 1.44 KB
/
clientStub.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import * as grpc from "@grpc/grpc-js";
import * as messages from "../generated/api_pb";
export declare class DgraphClientStub {
private readonly stub;
private accessJwt;
private refreshJwt;
private readonly promisified;
constructor(addr?: string, credentials?: grpc.ChannelCredentials, options?: object);
login(userid?: string, password?: string, refreshJwt?: string, metadata?: grpc.Metadata, options?: grpc.CallOptions): Promise<messages.Jwt>;
loginIntoNamespace(userid?: string, password?: string, namespace?: number, refreshJwt?: string, metadata?: grpc.Metadata, options?: grpc.CallOptions): Promise<messages.Jwt>;
alter(op: messages.Operation, metadata?: grpc.Metadata, options?: grpc.CallOptions): Promise<messages.Payload>;
retryLogin(metadata?: grpc.Metadata, options?: grpc.CallOptions): Promise<messages.Jwt>;
query(req: messages.Request, metadata?: grpc.Metadata, options?: grpc.CallOptions): Promise<messages.Response>;
mutate(mu: messages.Mutation, metadata?: grpc.Metadata, options?: grpc.CallOptions): Promise<messages.Response>;
commitOrAbort(ctx: messages.TxnContext, metadata?: grpc.Metadata, options?: grpc.CallOptions): Promise<messages.TxnContext>;
checkVersion(check: messages.Check, metadata?: grpc.Metadata, options?: grpc.CallOptions): Promise<messages.Version>;
waitForReady(deadline: grpc.Deadline): Promise<void>;
close(): void;
grpcClient(): grpc.Client;
private ensureMetadata;
}