Skip to content

Files

Latest commit

c20bdd0 · Jan 15, 2019

History

History
This branch is 191 commits ahead of asbubam/examples:master.

metadata

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 25, 2018
Mar 2, 2018
Jan 15, 2019

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