Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
# This file controls the behavior of Trunk: https://docs.trunk.io/cli
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
version: 0.1

cli:
version: 1.22.9

# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
plugins:
sources:
- id: trunk
ref: v1.6.6
uri: https://github.com/trunk-io/plugins

# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
runtimes:
enabled:
- [email protected]
- [email protected]
- [email protected]

# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:
disabled:
ignore:
- linters: [ALL]
paths:
- generated/**
enabled:
- [email protected]
- [email protected]
Expand Down
86 changes: 38 additions & 48 deletions generated/api_grpc_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,121 +2,111 @@

// Original file comments:
//
// Copyright (C) 2017 Dgraph Labs, Inc. and Contributors
//
// Licensed 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.
// SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
// SPDX-License-Identifier: Apache-2.0
//
// Style guide for Protocol Buffer 3.
// Use PascalCase (camelCase with an initial capital) for message names – for example,
// SongServerRequest. Use snake_case (underscore_separated_names) for field names – for
// example, song_name.
//
"use strict"
var grpc = require("@grpc/grpc-js")
var api_pb = require("./api_pb.js")
'use strict';
var grpc = require('@grpc/grpc-js');
var api_pb = require('./api_pb.js');

function serialize_api_Check(arg) {
if (!(arg instanceof api_pb.Check)) {
throw new Error("Expected argument of type api.Check")
throw new Error('Expected argument of type api.Check');
}
return Buffer.from(arg.serializeBinary())
return Buffer.from(arg.serializeBinary());
}

function deserialize_api_Check(buffer_arg) {
return api_pb.Check.deserializeBinary(new Uint8Array(buffer_arg))
return api_pb.Check.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_api_LoginRequest(arg) {
if (!(arg instanceof api_pb.LoginRequest)) {
throw new Error("Expected argument of type api.LoginRequest")
throw new Error('Expected argument of type api.LoginRequest');
}
return Buffer.from(arg.serializeBinary())
return Buffer.from(arg.serializeBinary());
}

function deserialize_api_LoginRequest(buffer_arg) {
return api_pb.LoginRequest.deserializeBinary(new Uint8Array(buffer_arg))
return api_pb.LoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_api_Operation(arg) {
if (!(arg instanceof api_pb.Operation)) {
throw new Error("Expected argument of type api.Operation")
throw new Error('Expected argument of type api.Operation');
}
return Buffer.from(arg.serializeBinary())
return Buffer.from(arg.serializeBinary());
}

function deserialize_api_Operation(buffer_arg) {
return api_pb.Operation.deserializeBinary(new Uint8Array(buffer_arg))
return api_pb.Operation.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_api_Payload(arg) {
if (!(arg instanceof api_pb.Payload)) {
throw new Error("Expected argument of type api.Payload")
throw new Error('Expected argument of type api.Payload');
}
return Buffer.from(arg.serializeBinary())
return Buffer.from(arg.serializeBinary());
}

function deserialize_api_Payload(buffer_arg) {
return api_pb.Payload.deserializeBinary(new Uint8Array(buffer_arg))
return api_pb.Payload.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_api_Request(arg) {
if (!(arg instanceof api_pb.Request)) {
throw new Error("Expected argument of type api.Request")
throw new Error('Expected argument of type api.Request');
}
return Buffer.from(arg.serializeBinary())
return Buffer.from(arg.serializeBinary());
}

function deserialize_api_Request(buffer_arg) {
return api_pb.Request.deserializeBinary(new Uint8Array(buffer_arg))
return api_pb.Request.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_api_Response(arg) {
if (!(arg instanceof api_pb.Response)) {
throw new Error("Expected argument of type api.Response")
throw new Error('Expected argument of type api.Response');
}
return Buffer.from(arg.serializeBinary())
return Buffer.from(arg.serializeBinary());
}

function deserialize_api_Response(buffer_arg) {
return api_pb.Response.deserializeBinary(new Uint8Array(buffer_arg))
return api_pb.Response.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_api_TxnContext(arg) {
if (!(arg instanceof api_pb.TxnContext)) {
throw new Error("Expected argument of type api.TxnContext")
throw new Error('Expected argument of type api.TxnContext');
}
return Buffer.from(arg.serializeBinary())
return Buffer.from(arg.serializeBinary());
}

function deserialize_api_TxnContext(buffer_arg) {
return api_pb.TxnContext.deserializeBinary(new Uint8Array(buffer_arg))
return api_pb.TxnContext.deserializeBinary(new Uint8Array(buffer_arg));
}

function serialize_api_Version(arg) {
if (!(arg instanceof api_pb.Version)) {
throw new Error("Expected argument of type api.Version")
throw new Error('Expected argument of type api.Version');
}
return Buffer.from(arg.serializeBinary())
return Buffer.from(arg.serializeBinary());
}

function deserialize_api_Version(buffer_arg) {
return api_pb.Version.deserializeBinary(new Uint8Array(buffer_arg))
return api_pb.Version.deserializeBinary(new Uint8Array(buffer_arg));
}


// Graph response.
var DgraphService = (exports.DgraphService = {
var DgraphService = exports.DgraphService = {
login: {
path: "/api.Dgraph/Login",
path: '/api.Dgraph/Login',
requestStream: false,
responseStream: false,
requestType: api_pb.LoginRequest,
Expand All @@ -127,7 +117,7 @@ var DgraphService = (exports.DgraphService = {
responseDeserialize: deserialize_api_Response,
},
query: {
path: "/api.Dgraph/Query",
path: '/api.Dgraph/Query',
requestStream: false,
responseStream: false,
requestType: api_pb.Request,
Expand All @@ -138,7 +128,7 @@ var DgraphService = (exports.DgraphService = {
responseDeserialize: deserialize_api_Response,
},
alter: {
path: "/api.Dgraph/Alter",
path: '/api.Dgraph/Alter',
requestStream: false,
responseStream: false,
requestType: api_pb.Operation,
Expand All @@ -149,7 +139,7 @@ var DgraphService = (exports.DgraphService = {
responseDeserialize: deserialize_api_Payload,
},
commitOrAbort: {
path: "/api.Dgraph/CommitOrAbort",
path: '/api.Dgraph/CommitOrAbort',
requestStream: false,
responseStream: false,
requestType: api_pb.TxnContext,
Expand All @@ -160,7 +150,7 @@ var DgraphService = (exports.DgraphService = {
responseDeserialize: deserialize_api_TxnContext,
},
checkVersion: {
path: "/api.Dgraph/CheckVersion",
path: '/api.Dgraph/CheckVersion',
requestStream: false,
responseStream: false,
requestType: api_pb.Check,
Expand All @@ -170,6 +160,6 @@ var DgraphService = (exports.DgraphService = {
responseSerialize: serialize_api_Version,
responseDeserialize: deserialize_api_Version,
},
})
};

exports.DgraphClient = grpc.makeGenericClientConstructor(DgraphService)
exports.DgraphClient = grpc.makeGenericClientConstructor(DgraphService);
Loading