service-example

command module
v0.0.0-...-619e060 Latest Latest
Warning

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

Go to latest
Published: May 31, 2017 License: GPL-3.0 Imports: 17 Imported by: 0

README

service example

reportcard build godoc

Install

go get github.com/gomatic/service-example

Test

Run the service

API_PORT=5000 service-example --debug >service-example.log 2>&1 & service_pid=$!

Test the service

curl -s localhost:5000/health         # The health check
curl -s localhost:5000/api/model.json # The OpenAPI documentation

debug routes

curl -s localhost:4999/debug/vars     # This debug route provides runtime information
RPC

Install RPC client helper

go get github.com/gomatic/service-example/cmd/service-example-client

Call the service through the RPC using the client helper

API_PORT=5000 service-example-client this is a great example message
Cleanup
kill ${service_pid}
rm service-example.log # Maybe have a look at the log before doing this.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
Package model is a generated protocol buffer package.
Package model is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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