UNPKG

skywalking-backend-js-netease

Version:

The NodeJS agent for Apache SkyWalking

85 lines (74 loc) 2.91 kB
// GENERATED CODE -- DO NOT EDIT! // Original file comments: // // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Apache License, Version 2.0 // (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // 'use strict'; var grpc = require('@grpc/grpc-js'); var tunnel_http_pb = require('../tunnel/http_pb.js'); function serialize_Bytes(arg) { if (!(arg instanceof tunnel_http_pb.Bytes)) { throw new Error('Expected argument of type Bytes'); } return Buffer.from(arg.serializeBinary()); } function deserialize_Bytes(buffer_arg) { return tunnel_http_pb.Bytes.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_HttpReqObject(arg) { if (!(arg instanceof tunnel_http_pb.HttpReqObject)) { throw new Error('Expected argument of type HttpReqObject'); } return Buffer.from(arg.serializeBinary()); } function deserialize_HttpReqObject(buffer_arg) { return tunnel_http_pb.HttpReqObject.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_HttpRespObject(arg) { if (!(arg instanceof tunnel_http_pb.HttpRespObject)) { throw new Error('Expected argument of type HttpRespObject'); } return Buffer.from(arg.serializeBinary()); } function deserialize_HttpRespObject(buffer_arg) { return tunnel_http_pb.HttpRespObject.deserializeBinary(new Uint8Array(buffer_arg)); } var HttpReportServiceService = exports.HttpReportServiceService = { invoke: { path: '/HttpReportService/invoke', requestStream: true, responseStream: false, requestType: tunnel_http_pb.HttpReqObject, responseType: tunnel_http_pb.HttpRespObject, requestSerialize: serialize_HttpReqObject, requestDeserialize: deserialize_HttpReqObject, responseSerialize: serialize_HttpRespObject, responseDeserialize: deserialize_HttpRespObject, }, stream: { path: '/HttpReportService/stream', requestStream: true, responseStream: true, requestType: tunnel_http_pb.Bytes, responseType: tunnel_http_pb.Bytes, requestSerialize: serialize_Bytes, requestDeserialize: deserialize_Bytes, responseSerialize: serialize_Bytes, responseDeserialize: deserialize_Bytes, }, }; exports.HttpReportServiceClient = grpc.makeGenericClientConstructor(HttpReportServiceService);