refactor package main (#49)

move the contents of main.go into app package.
scaffold a CLI subcommands package. 
add a version package and add /_version handler to print detailed version info.
This commit is contained in:
Victor Vrantchan
2016-11-13 15:50:36 -05:00
committed by GitHub
parent fef7b6ec00
commit 08528c207e

View File

@@ -12,7 +12,7 @@ import (
)
// ServiceHandler returns an HTTP Handler for the enroll service
func MakeHTTPHandler(ctx context.Context, svc Service, logger log.Logger) http.Handler {
func ServiceHandler(ctx context.Context, svc Service, logger log.Logger) http.Handler {
r := mux.NewRouter()
e := MakeServerEndpoints(svc)
opts := []httptransport.ServerOption{