src/api.js
function(opts) {
  this.load_balancer = opts.load_balancer;
  this.task_manager  = opts.task_manager;
  this.file_manager  = opts.file_manager;
  this.net_manager   = opts.net_manager;
  this.port          = opts.port || 10000;
  this.tls           = opts.tls;
}
function(opts) {
  this.load_balancer = opts.load_balancer;
  this.task_manager  = opts.task_manager;
  this.file_manager  = opts.file_manager;
  this.net_manager   = opts.net_manager;
  this.port          = opts.port || 10000;
  this.tls           = opts.tls;
}
function ( opts ) { this . load_balancer = opts . load_balancer ; this . task_manager = opts . task_manager ; this . file_manager = opts . file_manager ; this . net_manager = opts . net_manager ; this . port = opts . port || 10000 ; this . tls = opts . tls ; }
Set API default values
@constructor
@this {API}
@param opts {object} options
@param opts.port Port to listen on
@param opts.task_manager Task manager object
@param opts.file_manager File manager object
@param opts.file_manager Network manager (cloudfunctions.js) object
@param opts.tls TLS keys
Set API default values