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

     1  # Metadata
     2  
     3  This is an example of sending metadata/headers.
     4  
     5  HTTP headers sent to the micro api will be converted to metadata and forwarded on.
     6  
     7  ## Contents
     8  
     9  - **srv** - an RPC service which extracts metadata
    10  - **cli** - an RPC client that calls the service once
    11  
    12  ## Run Service
    13  
    14  Start go.micro.srv.greeter
    15  ```shell
    16  go run srv/main.go
    17  ```
    18  
    19  ## Client
    20  
    21  Call go.micro.srv.greeter via client
    22  ```shell
    23  go run cli/main.go
    24  ```
    25