grpc-checks

command module
v0.0.0-...-42c2ee4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: MPL-2.0 Imports: 7 Imported by: 0

README

grpc-checks

An example service that exposes a gRPC healthcheck endpoint

generate protobuf

Note that main.go also includes this as a go:generate directive so that running this by hand is not necessary

$ protoc -I ./health ./health/health.proto --go_out=plugins=grpc:health
build & run example

Generate, compile, and run the example server.

go generate
go build
go run main.go
publish
Testing locally
$ docker build -t hashicorpnomad/grpc-checks:test .
$ docker run --rm hashicorpnomad/grpc-checks:test
Upload to Docker Hub
# replace <version> with the next version number
docker login
$ docker build -t hashicorpnomad/grpc-checks:<version> .
$ docker push hashicorpnomad/grpc-checks:<version>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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