Add comments and fix common lint issues

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-10-20 11:46:19 -04:00
parent 9bd1dc78cb
commit 5fd0415985
15 changed files with 60 additions and 38 deletions

View File

@@ -17,13 +17,12 @@ func init() {
Type: plugin.GRPCPlugin,
ID: "healthcheck",
InitFn: func(*plugin.InitContext) (interface{}, error) {
return NewService()
return newService()
},
})
}
// NewService returns the GRPC health server
func NewService() (*service, error) {
func newService() (*service, error) {
return &service{
health.NewServer(),
}, nil