码迷,mamicode.com
首页 > 其他好文 > 详细

fnproject 对象模型

时间:2017-10-05 18:28:24      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:more   cat   present   rgba   roo   win   tab   logs   lis   

Applications

At the root of everything are applications. In fn, an application is essentially a grouping of functions with path mappings (routes) to each function. For instance, consider the following URLs for the app called myapp:

http://myapp.com/hello
http://myapp.com/users

This is an app with 2 routes:

    1. A mapping of the path /hello to a function called hello
    2. A mapping of the path /users to a function called users

Routes

An app consists of 1 or more routes. A route stores the mapping between URL paths and functions (ie: container iamges).

Calls

A call represents an invocation of a function. Every request for a URL as defined in the routes, a call is created. The call_id for each request will show up in all logs and the status of the call, as well as the logs, can be retrieved using the call_id.

Logs

Logs are stored for each call that is made and can be retrieved with the call_id.

 

fnproject 对象模型

标签:more   cat   present   rgba   roo   win   tab   logs   lis   

原文地址:http://www.cnblogs.com/rongfengliang/p/7629494.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!