pets-grpc

module
v0.0.0-...-a193200 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0

README

gRPC Demo - Pets API

This is a demo API showcasing gRPC and Protobuf in Golang.
It connects to a HTTP REST API downstream, found here: https://github.com/qwertyp4nts/pet-insurance-rest-api-demo

Tech notes

Run the service locally:
go run cmd/pets/main.go

Note: The default config file is set to: ./config/app/local.yaml

To run with a custom config file:
go run cmd/pets/main.go --config=./config/app/local.yaml

Regenerate proto code (from root):

protoc --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
proto/v1beta1/pets/pets_api.proto

Jump to

Keyboard shortcuts

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