Sha256: 9ac6fedee8f4d4751fd8943c10dab98c9f45d73efc4a5585eb1bc577aab04c12
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
var current_user = function(resp,callback){ var json = {}; json['function'] = 'current_user'; json['args'] = ''; json['callback'] = callback; resp.send(json); } var stash_result = function(resp,callback){ var json = {}; json['function'] = 'stash_result'; json['args'] = resp.params; json['callback'] = callback; resp.send(json); } var source = function(resp,callback){ var json = {}; json['function'] = 'source'; json['args'] = ''; json['callback'] = callback; resp.send(json); } var Store = function(){ var kls = 'Store'; this.put_value = function(resp,callback){ var json = this.format_json('put_value',resp.params); resp.send(json); } this.get_value = function(resp,callback){ var json = this.format_json('get_value',resp.params); resp.send(json); } this.put_data = function(resp,callback){ var json = this.format_json('put_data',resp.params); resp.send(json); } this.get_data = function(resp,callback){ var json = this.format_json('get_data',resp.params); resp.send(json); } function format_json(method,args){ var json = {}; json['kls'] = this.kls; json['function'] = method; json['args'] = args; json['route'] = 'request'; return json; } } exports.current_user = current_user; exports.stash_result = stash_result; exports.source = source; module.exports.Store = Store;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rhoconnect-4.0.0.beta.10 | js-adapters/rhoconnect_helpers.js |