Giter Site home page Giter Site logo

fc-local-invoke's Introduction

组件说明

fc-local-invoke 组件用于本地调试 FC 函数。

使用场景

本地调试。

具体用法

http 函数

$ s start <[customDomainName/]path>

本地启动成功后访问返回的 url 即可访问服务。

event 函数

$ s invoke --mode [api/normal/server]

上述指令能够本地调试 event 函数,有三种启动模式:

  • api 模式: 启动服务供本地 InvokeFunction API 或者 SDK 进行调用,详情请参见 invokeFunctionSDK 列表

  • normal 模式: 本地通过容器调用 event 函数返回结果后,立刻关闭容器,此模式为默认模式。

  • server 模式: 本地启动一个容器,然后在新开的 terminal 窗口执行 normal 模式的 invoke 指令,则会复用该容器。

fc-local-invoke's People

Contributors

wss-git avatar squatstonight avatar heimanba avatar rsonghuster avatar xsahxl avatar jasonlamv-t avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.