How to use the thrift.Q function in thrift

To help you get started, we’ve selected a few thrift examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github creditkarma / thrift-server / packages / thrift-server-express / src / fixtures / SharedService.js View on Github external
//
// Autogenerated by Thrift Compiler (0.10.0)
//
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
//
"use strict";

var thrift = require('thrift');
var Thrift = thrift.Thrift;
var Q = thrift.Q;


var ttypes = require('./shared_types');
//HELPER FUNCTIONS AND STRUCTURES

var SharedService_getStruct_args = function(args) {
  this.key = null;
  if (args) {
    if (args.key !== undefined && args.key !== null) {
      this.key = args.key;
    }
  }
};
SharedService_getStruct_args.prototype = {};
SharedService_getStruct_args.prototype.read = function(input) {
  input.readStructBegin();
github ironSource / parquetjs / gen-nodejs / parquet_types.js View on Github external
//
// Autogenerated by Thrift Compiler (1.0.0-dev)
//
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
//
"use strict";

var thrift = require('thrift');
var Thrift = thrift.Thrift;
var Q = thrift.Q;


var ttypes = module.exports = {};
ttypes.Type = {
  'BOOLEAN' : 0,
  'INT32' : 1,
  'INT64' : 2,
  'INT96' : 3,
  'FLOAT' : 4,
  'DOUBLE' : 5,
  'BYTE_ARRAY' : 6,
  'FIXED_LEN_BYTE_ARRAY' : 7
};
ttypes.ConvertedType = {
  'UTF8' : 0,
  'MAP' : 1,
github MZMonster / node-thrift-service / gen-nodejs / msg_types.js View on Github external
//
// Autogenerated by Thrift Compiler (0.9.3)
//
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
//
var thrift = require('thrift');
var Thrift = thrift.Thrift;
var Q = thrift.Q;


var ttypes = module.exports = {};
Base = module.exports.Base = function(args) {
  this.msgID = null;
  this.sender = null;
  if (args) {
    if (args.msgID !== undefined && args.msgID !== null) {
      this.msgID = args.msgID;
    } else {
      throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field msgID is unset!');
    }
    if (args.sender !== undefined && args.sender !== null) {
      this.sender = args.sender;
    } else {
      throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.UNKNOWN, 'Required field sender is unset!');
github creditkarma / thrift-server / packages / thrift-server-express / src / fixtures / Calculator.js View on Github external
//
// Autogenerated by Thrift Compiler (0.10.0)
//
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
//
"use strict";

var thrift = require('thrift');
var Thrift = thrift.Thrift;
var Q = thrift.Q;

var shared_ttypes = require('./shared_types');


var SharedService = require('./SharedService');
var SharedServiceClient = SharedService.Client;
var SharedServiceProcessor = SharedService.Processor;
var ttypes = require('./tutorial_types');
//HELPER FUNCTIONS AND STRUCTURES

var Calculator_ping_args = function(args) {
};
Calculator_ping_args.prototype = {};
Calculator_ping_args.prototype.read = function(input) {
    input.readStructBegin();
    while (true)
github openzipkin / zipkin-js / packages / zipkin-encoder-thrift / src / gen-nodejs / zipkinCore_types.js View on Github external
//
// Autogenerated by Thrift Compiler (0.10.0)
//
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
//
"use strict";

var thrift = require('thrift');
var Thrift = thrift.Thrift;
var Q = thrift.Q;


var ttypes = module.exports = {};
ttypes.AnnotationType = {
  'BOOL' : 0,
  'BYTES' : 1,
  'I16' : 2,
  'I32' : 3,
  'I64' : 4,
  'DOUBLE' : 5,
  'STRING' : 6
};
var Endpoint = module.exports.Endpoint = function(args) {
  this.ipv4 = null;
  this.port = null;
  this.service_name = null;
github creditkarma / thrift-server / packages / thrift-server-express / src / fixtures / shared_types.js View on Github external
//
// Autogenerated by Thrift Compiler (0.10.0)
//
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
//
"use strict";

var thrift = require('thrift');
var Thrift = thrift.Thrift;
var Q = thrift.Q;


var ttypes = module.exports = {};
var SharedStruct = module.exports.SharedStruct = function(args) {
  this.key = null;
  this.value = null;
  if (args) {
    if (args.key !== undefined && args.key !== null) {
      this.key = args.key;
    }
    if (args.value !== undefined && args.value !== null) {
      this.value = args.value;
    }
  }
};
SharedStruct.prototype = {};
github moleculerjs / moleculer / src / serializers / thrift / gen-nodejs / packets_types.js View on Github external
//
// Autogenerated by Thrift Compiler (0.11.0)
//
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
//
"use strict";

let thrift = require("thrift");
let Thrift = thrift.Thrift;
let Q = thrift.Q;


let ttypes = module.exports = {};
/* istanbul ignore next */
let PacketEvent = module.exports.PacketEvent = function(args) {
	this.ver = null;
	this.sender = null;
	this.event = null;
	this.data = null;
	this.groups = null;
	this.broadcast = null;
	if (args) {
		if (args.ver !== undefined && args.ver !== null) {
			this.ver = args.ver;
		}
		if (args.sender !== undefined && args.sender !== null) {
github creditkarma / thrift-server / packages / thrift-server-express / src / fixtures / tutorial_types.js View on Github external
//
// Autogenerated by Thrift Compiler (0.10.0)
//
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
//
"use strict";

var thrift = require('thrift');
var Thrift = thrift.Thrift;
var Q = thrift.Q;

var shared_ttypes = require('./shared_types');


var ttypes = module.exports = {};
ttypes.Operation = {
  'ADD' : 1,
  'SUBTRACT' : 2,
  'MULTIPLY' : 3,
  'DIVIDE' : 4,
  'DOT.SEP' : 5
};
ttypes.Operation2 = {
  'ADD' : 0,
  'SUBTRACT' : 1,
  'MULTIPLY' : 2,
github ripple / rippled-historical-database / lib / hbase / hbase-thrift / gen / Hbase_types.js View on Github external
//
// Autogenerated by Thrift Compiler (0.9.2)
//
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
//
var thrift = require('thrift');
var Thrift = thrift.Thrift;
var Q = thrift.Q;


var ttypes = module.exports = {};
TCell = module.exports.TCell = function(args) {
  this.value = null;
  this.timestamp = null;
  if (args) {
    if (args.value !== undefined) {
      this.value = args.value;
    }
    if (args.timestamp !== undefined) {
      this.timestamp = args.timestamp;
    }
  }
};
TCell.prototype = {};
github MZMonster / node-thrift-service / gen-nodejs / Message.js View on Github external
//
// Autogenerated by Thrift Compiler (0.9.3)
//
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
//
var thrift = require('thrift');
var Thrift = thrift.Thrift;
var Q = thrift.Q;


var ttypes = require('./msg_types');
//HELPER FUNCTIONS AND STRUCTURES

Message_call_args = function(args) {
  this.msg = null;
  if (args) {
    if (args.msg !== undefined && args.msg !== null) {
      this.msg = new ttypes.CMsg(args.msg);
    }
  }
};
Message_call_args.prototype = {};
Message_call_args.prototype.read = function(input) {
  input.readStructBegin();