5b84f078c6
* feat(grpc): add syncing protocol buffers * wip * feat: syncing implementation * fix: sendign metadata * fix: grpc sync request mapping * fix grpc response mapper
41 lines
2.2 KiB
TypeScript
41 lines
2.2 KiB
TypeScript
// package: sync
|
|
// file: sync.proto
|
|
|
|
/* tslint:disable */
|
|
/* eslint-disable */
|
|
|
|
import * as grpc from "@grpc/grpc-js";
|
|
import * as sync_pb from "./sync_pb";
|
|
|
|
interface ISyncingService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
syncItems: ISyncingService_IsyncItems;
|
|
}
|
|
|
|
interface ISyncingService_IsyncItems extends grpc.MethodDefinition<sync_pb.SyncRequest, sync_pb.SyncResponse> {
|
|
path: "/sync.Syncing/syncItems";
|
|
requestStream: false;
|
|
responseStream: false;
|
|
requestSerialize: grpc.serialize<sync_pb.SyncRequest>;
|
|
requestDeserialize: grpc.deserialize<sync_pb.SyncRequest>;
|
|
responseSerialize: grpc.serialize<sync_pb.SyncResponse>;
|
|
responseDeserialize: grpc.deserialize<sync_pb.SyncResponse>;
|
|
}
|
|
|
|
export const SyncingService: ISyncingService;
|
|
|
|
export interface ISyncingServer {
|
|
syncItems: grpc.handleUnaryCall<sync_pb.SyncRequest, sync_pb.SyncResponse>;
|
|
}
|
|
|
|
export interface ISyncingClient {
|
|
syncItems(request: sync_pb.SyncRequest, callback: (error: grpc.ServiceError | null, response: sync_pb.SyncResponse) => void): grpc.ClientUnaryCall;
|
|
syncItems(request: sync_pb.SyncRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: sync_pb.SyncResponse) => void): grpc.ClientUnaryCall;
|
|
syncItems(request: sync_pb.SyncRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: sync_pb.SyncResponse) => void): grpc.ClientUnaryCall;
|
|
}
|
|
|
|
export class SyncingClient extends grpc.Client implements ISyncingClient {
|
|
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
|
|
public syncItems(request: sync_pb.SyncRequest, callback: (error: grpc.ServiceError | null, response: sync_pb.SyncResponse) => void): grpc.ClientUnaryCall;
|
|
public syncItems(request: sync_pb.SyncRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: sync_pb.SyncResponse) => void): grpc.ClientUnaryCall;
|
|
public syncItems(request: sync_pb.SyncRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: sync_pb.SyncResponse) => void): grpc.ClientUnaryCall;
|
|
}
|