2018年5月18日

ballerina 学习九 Client endpoints

摘要: 说白了就是连接外部服务的,可以是http jms websocket 。。。。 简单例子 代码 import ballerina/http; import ballerina/log; endpoint http:Client baiduEP { url:"http://www.baidu.com" 阅读全文

posted @ 2018-05-18 14:38 荣锋亮 阅读(312) 评论(0) 推荐(0) 编辑

ballerina 学习八 Parallel( 并行处理)

摘要: 实际上就是并行进行任务的处理 简单例子 代码 import ballerina/io; function main (string… args) { worker first { io:println("first"); } worker second { io:println("second"); 阅读全文

posted @ 2018-05-18 13:51 荣锋亮 阅读(183) 评论(0) 推荐(0) 编辑

ballerina 学习七 object 创建&& 初始化

摘要: 在 ballerina 总中object 是一个包含public private 类型字段同时包含函数,需要开发人员进行自定义类型以及行为 说白了,就是类似面向对象的class 基本使用 代码 import ballerina/http; import ballerina/io; type App 阅读全文

posted @ 2018-05-18 13:23 荣锋亮 阅读(190) 评论(0) 推荐(0) 编辑

ballerina 学习六 xml && json

摘要: ballerina xml && json 参考使用 代码比较简单,使用起来还是比较方便的 xml 代码说明: import ballerina/io; function main (string… args) { xml person1 = xml `<person><fname>John</fn 阅读全文

posted @ 2018-05-18 10:39 荣锋亮 阅读(275) 评论(0) 推荐(0) 编辑

导航