examples/

directory
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2018 License: Apache-2.0

README

Quik start with examples

  1. Launch service center
cd examples
docker-compose up
  1. Run rest server
cd examples/rest/server
export CHASSIS_HOME=$PWD
go run main.go

  1. Run Rest client
 cd examples/rest/client
 export CHASSIS_HOME=$PWD
 go run main.go
 

Examples

communication

A simple end to end communication without any service registry involved

discovery

A complicated example with most of go chassis-features

rest

simple rest communication

rpc

simple rpc communication

file upload

a file upload example by using go-chassis rest communication

pilot

this example use Istio pilot as service registry

monitoring

show tracing on zipkin and export prometheus metrics format

metadata

Demonstrate how to set local scope parameter, header, and use them in your schema

In handler chain you can set a local data or protocol header, then you can read it in next handler in chain and your Restful handler

Directories

Path Synopsis
communication
discovery
fileupload
kube
monitoring
mutiports
pilot
plugin
rest
rpc
employ
Package employ is a generated protocol buffer package.
Package employ is a generated protocol buffer package.
helloworld
Package helloworld is a generated protocol buffer package.
Package helloworld is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL