{"size": 680, "ext": "js", "max_stars_repo_path": "samples/cloud-calls/call/index.js", "max_stars_repo_name": "southworks/multicloud", "max_stars_repo_stars_event_min_datetime": "2019-10-29T17:47:44.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-11T01:28:48.000Z", "max_issues_repo_path": "samples/cloud-calls/call/index.js", "max_issues_repo_name": "serverless/multicloud", "max_issues_repo_issues_event_min_datetime": "2019-11-14T19:04:50.000Z", "max_issues_repo_issues_event_max_datetime": "2021-12-13T21:08:03.000Z", "max_forks_repo_path": "samples/cloud-calls/call/index.js", "max_forks_repo_name": "southworks/multicloud", "max_forks_repo_forks_event_min_datetime": "2019-11-05T17:07:59.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-03T16:22:18.000Z"}
{"max_stars_count": 73, "max_issues_count": 24, "max_forks_count": 10, "avg_line_length": 23.4482758621, "max_line_length": 64, "alphanum_fraction": 0.6838235294}
const { App, CloudContainer } = require("@multicloud/sls-core");
const {
  AzureModule,
  AzureFunctionCloudService
} = require("@multicloud/sls-azure");


const container = new CloudContainer();
container.registerModule(new AzureModule());
container.registerModule({
  init: container => {
    container.bind("google").toConstantValue({
      name: "google",
      method: "get",
      http: "http://www.google.com"
    });
  }
});

const app = new App(container);
const caller = new AzureFunctionCloudService(container)

const handler = async (context) => {
  const result = await caller.invoke("google");
  context.send(result.data);
};

module.exports = app.use([], handler);
