service

command
v0.0.0-...-d3de454 Latest Latest
Warning

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

Go to latest
Published: May 1, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

README

Service

This is an example of creating a micro service using the top level interface.

Prereqs

Micro services need a discovery system so they can find each other. Micro uses consul by default but its easily swapped out with etcd, kubernetes, or various other systems. We'll run consul for convenience.

  1. Follow the install instructions - https://www.consul.io/intro/getting-started/install.html

  2. Run Consul

$ consul agent -dev -advertise=127.0.0.1

Run the example

  1. Get the service
go get github.com/micro/go-micro/examples/service
  1. Run the server
$GOPATH/bin/service
  1. Run the client
$GOPATH/bin/service --client

And that's all there is to it.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package greeter is a generated protocol buffer package.
Package greeter is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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