Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Latest commit

 

History

History
25 lines (16 loc) · 446 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 446 Bytes

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