1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-18 22:17:44 +02:00
Files
.github
api
auth
broker
cache
client
cmd
codec
config
debug
errors
events
examples
.github
broker
cache
client
config
event
filter
flags
function
proto
README.md
main.go
gateway
getip
graceful
greeter
heartbeat
helloworld
http
metadata
mocking
noproto
options
pubsub
redirect
roundrobin
secure
server
service
sharding
shutdown
stream
waitgroup
wrapper
LICENSE
README.md
_config.yml
go.mod
go.sum
logger
metadata
plugins
registry
runtime
selector
server
services
store
sync
transport
util
web
.gitignore
CHANGELOG.md
LICENSE
README.md
_config.yml
event.go
function.go
function_test.go
generate.go
go-micro.png
go.mod
go.sum
micro.go
options.go
service.go
service_test.go
go-micro/examples/function/README.md

23 lines
406 B
Markdown
Raw Normal View History

2020-12-26 15:17:20 +00:00
# Function
This is an example of creating a micro function. A function is a one time executing service.
## Contents
- main.go - is the main definition of the function
- proto - contains the protobuf definition of the API
## Run function
```shell
while true; do
2021-10-13 13:31:23 +01:00
github.com/asim/go-micro/examples/v4/function
2020-12-26 15:17:20 +00:00
done
```
## Call function
```shell
micro call greeter Greeter.Hello '{"name": "john"}'
```