command
Version:
v0.0.0-...-908d554
Opens a new window with list of versions in this module.
Published: Nov 2, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Function
Function是只响应一次请求的服务,我们现在介绍如何使用Function。
运行Function
使用protoc生成相应的代码
protoc --go_out=. --micro_out=. proto/greeter.proto
Mac/Linux
watch -n1 go run main.go
Windows(Powershell)
while (1) {go run main.go; sleep 1}
调用Function
micro call greeter Greeter.Hello '{"name": "Micro中国"}'
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.