go-base

module
v0.0.0-...-6c46dfd Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 License: Apache-2.0

README

go-base

Note this has been replaced with a revised version in the healthimation organization. The code in this repo is deprecated.

A base service to start new services from

Getting Started

  • Clone to new service folder
  • Change the remote to your new service's URL
  • Change serviceName in run.sh
  • Push
git clone git@github.com:divideandconquer/go-base.git new-service
cd new-service
git remote set-url origin git://new.url.here
sed -i '' 's/"base"/"new"/' build/run.sh
git add *
git commit -m "initial clone"
git push -u origin master

This service infrastructure assumes you are running it in docker and have access to consul. I recommend using coreos-vagrant and then running consul as a fleet unit. You should be able to copy the unit file at the previous link on to the coreos box and start it with:

fleetctl start /path/to/consul.service

Directories

Path Synopsis
Godeps
_workspace/src/github.com/codegangsta/inject
Package inject provides utilities for mapping and injecting dependencies in various ways.
Package inject provides utilities for mapping and injecting dependencies in various ways.
_workspace/src/github.com/go-martini/martini
Package martini is a powerful package for quickly writing modular web applications/services in Golang.
Package martini is a powerful package for quickly writing modular web applications/services in Golang.
src

Jump to

Keyboard shortcuts

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