function

command
v0.0.0-...-908d554 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL