项目文件夹

文件
Asim Aslam 1cd7cfaa6c
Run tests / Test repo (push) Has been cancelled
go-micro.dev/v4 (#2305)
2021-10-12 12:55:53 +01:00
..
2021-10-12 12:55:53 +01:00
2021-10-12 12:55:53 +01:00
2020-12-26 15:17:20 +00:00

Metadata

This is an example of sending metadata/headers.

HTTP headers sent to the micro api will be converted to metadata and forwarded on.

Contents

  • srv - an RPC service which extracts metadata
  • cli - an RPC client that calls the service once

Run Service

Start go.micro.srv.greeter

go run srv/main.go

Client

Call go.micro.srv.greeter via client

go run cli/main.go