UNPKG

@kangc/skywalking-backend-js

Version:

The NodeJS agent for Apache SkyWalking

45 lines (36 loc) 2.84 kB
// package: skywalking.v3 // file: event/Event.proto /* tslint:disable */ /* eslint-disable */ import * as grpc from "@grpc/grpc-js"; import * as event_Event_pb from "../event/Event_pb"; import * as common_Common_pb from "../common/Common_pb"; interface IEventServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> { collect: IEventServiceService_Icollect; } interface IEventServiceService_Icollect extends grpc.MethodDefinition<event_Event_pb.Event, common_Common_pb.Commands> { path: "/skywalking.v3.EventService/collect"; requestStream: true; responseStream: false; requestSerialize: grpc.serialize<event_Event_pb.Event>; requestDeserialize: grpc.deserialize<event_Event_pb.Event>; responseSerialize: grpc.serialize<common_Common_pb.Commands>; responseDeserialize: grpc.deserialize<common_Common_pb.Commands>; } export const EventServiceService: IEventServiceService; export interface IEventServiceServer extends grpc.UntypedServiceImplementation { collect: grpc.handleClientStreamingCall<event_Event_pb.Event, common_Common_pb.Commands>; } export interface IEventServiceClient { collect(callback: (error: grpc.ServiceError | null, response: common_Common_pb.Commands) => void): grpc.ClientWritableStream<event_Event_pb.Event>; collect(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: common_Common_pb.Commands) => void): grpc.ClientWritableStream<event_Event_pb.Event>; collect(options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: common_Common_pb.Commands) => void): grpc.ClientWritableStream<event_Event_pb.Event>; collect(metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: common_Common_pb.Commands) => void): grpc.ClientWritableStream<event_Event_pb.Event>; } export class EventServiceClient extends grpc.Client implements IEventServiceClient { constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>); public collect(callback: (error: grpc.ServiceError | null, response: common_Common_pb.Commands) => void): grpc.ClientWritableStream<event_Event_pb.Event>; public collect(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: common_Common_pb.Commands) => void): grpc.ClientWritableStream<event_Event_pb.Event>; public collect(options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: common_Common_pb.Commands) => void): grpc.ClientWritableStream<event_Event_pb.Event>; public collect(metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: common_Common_pb.Commands) => void): grpc.ClientWritableStream<event_Event_pb.Event>; }