Skip to content

[template] Basic Setup with the Go language & gRPC

License

Notifications You must be signed in to change notification settings

AlcheraInc/go-service-template

Repository files navigation

Go Service Template

Build Status

Basic setup for service prototyping in Alchera Inc.

  • gRPC Echo with TLS (Self-signed)

References

How To

Setup

See .travis.yml for entire steps.

Go Path

$env:GOPATH=Get-Location
export GOPATH=$(pwd)

gRPC

go get google.golang.org/grpc

Protocol Buffer

go get github.com/golang/protobuf/proto
go get github.com/golang/protobuf/protoc-gen-go

Key/Cert Generation

The following scripts requires openssl tool.

bash ./scripts/openssl_key_gen.sh;
bash ./scripts/openssl_cert_selfsign.sh;

Test

go test -cover -v .