当前位置: 首页 > news >正文

备案的网站每年都要备案么搜索引擎是什么

备案的网站每年都要备案么,搜索引擎是什么,设计公司介绍,网络运营推广经验1.说明 本节是厘清openbmc的界面层web或者redfish到底层数据获取与展示。 不可或缺的是先阅读官方关于redfish的设计文档: 1.https://github.com/openbmc/docs/blob/master/designs/redfish-authorization.md2.https://github.com/openbmc/docs/blob/master/designs/redfish…1.说明 本节是厘清openbmc的界面层web或者redfish到底层数据获取与展示。 不可或缺的是先阅读官方关于redfish的设计文档: 1.https://github.com/openbmc/docs/blob/master/designs/redfish-authorization.md2.https://github.com/openbmc/docs/blob/master/designs/redfish-postcodes.md3.https://github.com/openbmc/docs/blob/master/development/web-ui.md 需要注意的是官方的文档一定要细读与分析背后的设计。 2.代码简单流程分析 2.1 大致总体流程 代码包包含web和redfish均在bmcweb中可以使用如下命令抽取代码: # devtool modify bmcweb调用关系如下: (bmcweb/src/webserver_main.cpp) int main(int /*argc*/, char** /*argv*/) noexcept(false) --- run() (bmcweb/src/webserver_run.cpp)--- server.add_interface(/xyz/openbmc_project/bmcweb,xyz.openbmc_project.bmcweb);--- if constexpr (BMCWEB_REDFISH)--- redfish::RedfishService redfish(app);--- redfish::EventServiceManager::getInstance(*io);--- crow::login_routes::requestRoutes(app);--- app.run();--- systemBus-request_name(xyz.openbmc_project.bmcweb);--- io-run();redfish()定义在文件bmcweb/redfish-core/src/redfish.cpp中关系如下: RedfishService::RedfishService(App app) --- requestRoutesMetadata(app); --- requestRoutesOdata(app); --- requestAccountServiceRoutes(app); --- requestRoutesRoles(app); --- ... --- requestRoutesManager(app); --- ... --- requestRoutesSystemsLogServicesPostCode(app); --- ... --- requestRoutesRedfish(app);因此如果需要添加自己的redfish功能可以在这里添加顶层函数功能。 拿一个函数调用:requestRoutesManager(app)举例: (bmcweb/redfish-core/lib/managers.hpp) inline void requestRoutesManager(App app) --- BMCWEB_ROUTE(app, /redfish/v1/Managers/str/)...调用返回数据。 2.2 web与redfish结合 openbmc的web与redfish怎么结合去服务用户呢 web理解就是前端展现给用户的网页redfish其实是与web进行沟通所以openbmc设计理念是redfish(bmcweb)作为后台与web(web-vue)作为前端搭配起来使用的。 顺便提一下openbmc是使用nghttp2作为web server的。 举一个简单例子在前端js中获取数据: async getChassisCollection() { --- ... --- .get(/redfish/v1/Chassis)2.3 针对官方文档简单分析一个例子 这一部分针对官方文档的内容看一下例子。 官方文档如下: https://github.com/openbmc/docs/blob/master/designs/redfish-postcodes.md 该文档说的bios postcode的事情可以找到代码位置: bmcweb/redfish-core/lib/systems_logservices_postcodes.hpp bmcweb/redfish-core/src/redfish.cpp在文件bmcweb/redfish-core/src/redfish.cpp中调用函数requestRoutesSystemsLogServicesPostCode()在文件bmcweb/redfish-core/lib/systems_logservices_postcodes.hpp中定义了函数:requestRoutesSystemsLogServicesPostCode(): inline void requestRoutesSystemsLogServicesPostCode(App app) --- BMCWEB_ROUTE(app, /redfish/v1/Systems/str/LogServices/PostCodes/)... --- BMCWEB_ROUTE(app,/redfish/v1/Systems/str/LogServices/PostCodes/Actions/LogService.ClearLog/) --- BMCWEB_ROUTE(app,/redfish/v1/Systems/str/LogServices/PostCodes/Entries/) --- BMCWEB_ROUTE(app, /redfish/v1/Systems/str/LogServices/PostCodes/Entries/str/) --- BMCWEB_ROUTE(app,/redfish/v1/Systems/str/LogServices/PostCodes/Entries/str/attachment/)比较关心的是对于设置操作如何处理。可以看到调用的是函数handleSystemsLogServicesPostCodesPost(): inline void handleSystemsLogServicesPostCodesPost() --- crow::connections::systemBus-async_method_call(..,xyz.openbmc_project.State.Boot.PostCode0, /xyz/openbmc_project/State/Boot/PostCode0, xyz.openbmc_project.Collection.DeleteAll, DeleteAll);因此采取的就是一种函数调用的办法去处理的。 2.4 web获取后台数据的例子 这一节借一个web例子可以看到web和后台是怎么交互的。 例如在web下可以看到如下内容: 因此明显看到后台以(redfish)json数据呈现给webweb解析即可。
http://www.hkea.cn/news/14291824/

相关文章:

  • 网站建设的基础是什么意思建立网站项目计划书模板
  • 做影视网站需要境外个人网站模板
  • 网站重购国外文创产品设计
  • 第一次做网站时是怎样的心情青岛物联网app开发公司
  • 做淘客网站要多大的服务器建站方案策划书
  • 陕西网站建设价位多少公司的网站难不难做
  • 做二手货车网站客户网站开发全流程图
  • 百度收录效果好的网站网站执行速度
  • 主要的网站开发技术路线wordpress自动链接到图片
  • 网站建设现状和前景建网站需要的设备
  • 做网站时怎么添加动态信息商店网站在线设计
  • 免费网站建设哪个最好发稿平台
  • 毕业设计选择做网站的意义wordpress页面设置栏目
  • 十大在线编程网站射洪县住房和城乡建设局网站
  • 企业门户网站建设教程公司网站开发建设费用
  • 适合女生做的网站wordpress 写权限设置
  • 博客网站seo2022年最近十大新闻
  • 河南省住建厅网站豫建设标公司网站建设会计分录
  • 网站兼职做计划赚小钱江苏华能建设集团有限公司网站
  • 旅游网站建设总结报告宝塔面板一键部署wordpress打不开
  • 网站内建设的发展德山经济开发区建设局网站
  • 陕西省网上注册公司流程性价比高seo网站优化
  • 鲜花电商网站开发电子商务公司名称起名
  • 古典水墨网站兰州启点网站建设
  • 重庆秀山网站建设费用wordpress 主题制作 教程
  • 保定商城网站建设如何优化关键词排名快速首页
  • 上市公司集团网站建设网站及其建设的心得
  • 响应式外贸营销网站注册一个公司多少钱
  • 中国南昌企业网站制作贵阳网站建设seo公众号开发
  • 网站基础知识域名5个点做网站运营还是翻译