scalra:node.js框架可快速原型化和扩展服务器

时间:2024-05-31 22:21:16
【文件属性】:

文件名称:scalra:node.js框架可快速原型化和扩展服务器

文件大小:1.1MB

文件格式:ZIP

更新时间:2024-05-31 22:21:16

demo prototype scalability api-server api-service

(掌握) (开发) Scala 框架来快速原型化和扩展API服务器。 require ( 'scalra' ) ( 'curr' ) ; SR . API . add ( 'HelloWorld' , { name : 'string' } , function ( args , onDone ) { LOG . warn ( 'HelloWorld called with: ' + args ) ; onDone ( null , { hello : args . name } ) ; } ) ; var l_frontier = new SR . Frontier ( 37070 ) ; l_frontier . init ( ) ; 然后在服务器上调用: SR . API . HelloWorld ( { name : 'John' } , function ( err


网友评论