stock-service

command module
v0.0.0-...-094446d Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

README

Example Stock Service

An example RPC stock service using Go Micro

This service is an example service in the following scenero

### Dependencies - Go Micro - Consul - Cassandra - RabbitMQ
To run the service
  • Make sure you have Consul installed and running
  • Make yourself a copy of the config yaml file specifying the location of your Cassandra and Rabbit instances
 cp config.example.yml config.yml
  • Run the service
 go run main.go --config_file_path=path/to/your/cofig/file
Query the service from the command line
 go get github.com/micro/micro
 micro query charlieplc.stock Stock.Update '{"sku":"123456","amount":1}' 
To do
  • DB migrations

Documentation

The Go Gopher

There is no documentation for this package.

Directories

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

Jump to

Keyboard shortcuts

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