ducky/subscriptions

Paddy 2015-10-04 Parent:fe8f092cc149

16:b063bc0a6e84 Go to Latest

ducky/subscriptions/subscriptionsd/build-docker.sh

Make api subpackage golint-passing. Add comments to all the exported functions, methods, and variables in the api subpackage, to make golint happy. Also, make the individual endpoints in the api subpackage unexported, as there's no real use case for exporting them. The handlers depend on the placeholders in the endpoint, so we need them to be controlled in unison, which means it's probably a bad idea to declare the route outside of the API package. And the only reason to expose the Handler is so people can declare custom endpoints.

History
1 docker run -it -e "CGO_ENABLED=0" -e "GOOS=linux" -v $GOPATH:/gopath google/golang go build -v -a -installsuffix cgo -o /gopath/src/code.secondbit.org/ducky/subscriptions.hg/subscriptionsd/docker-subscriptionsd -ldflags "-X code.secondbit.org/ducky/subscriptions%2ehg.Version `hg id -i`" code.secondbit.org/ducky/subscriptions.hg/subscriptionsd