Skip to content
This repository was archived by the owner on Sep 15, 2019. It is now read-only.

Bacra/node-clientlinker-flow-httpproxy

Repository files navigation

Clientlinker-flow-httpproxy

NPM Version NPM Downloads Build Status Coveralls NPM License Install Size

Install

Install clientlinker pkg

npm i clientlinker --save

Install flow pkg

npm i clientlinker-flow-httpproxy --save

Useage

var clientlinker = require('clientlinker');
var linker = clientlinker({
  flows: ['confighandler', 'httpproxy'],
  defaults: {
    httpproxy: 'http://localhost/clientlinker_proxy'
  },
  clients: {
    client: {
      confighandler: {
        clientHanlder: function(query, body, callback, options) {
          return Promise.resolve({result: {}});
        }
      }
    }
  }
});

linker.flow('confighandler', require('clientlinker-flow-confighandler'));
linker.flow('httpproxy', require('clientlinker-flow-httpproxy'));

// use
linker.run('client.clientHanlder', null, {id: 13})
  .then(function(){});

About

Httpproxy flow for clientlinker

Resources

Stars

Watchers

Forks

Packages

No packages published