github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/function/README.md (about)

     1  # Function
     2  
     3  This is an example of creating a micro function. A function is a one time executing service.
     4  
     5  ## Contents
     6  
     7  - main.go - is the main definition of the function
     8  - proto - contains the protobuf definition of the API
     9  
    10  ## Run function
    11  
    12  ```shell
    13  while true; do
    14  	github.com/micro/go-micro/examples/function
    15  done
    16  ```
    17  
    18  ## Call function
    19  
    20  ```shell
    21  micro call greeter Greeter.Hello '{"name": "john"}'
    22  ```