Skip to content

Instantly share code, notes, and snippets.

View vchudnov-g's full-sized avatar

Victor Chudnovsky vchudnov-g

View GitHub Profile
@vchudnov-g
vchudnov-g / . Simplest gRPC API with working generated client libraries & samples .md
Created October 31, 2018 13:55 — forked from beccasaurus/. gRPC Dogs API – with GAPIC generated libraries 🐕 .md
Simplest gRPC API with working generated client libraries & samples – # codelab

🦑 G.A.P.I.C 🖥 codelab 🎓

.
├── artman_dogs.yaml
├── dogs.proto
├── dogs_gapic.yaml
├── dogs_server.js
├── dogs_service.yaml
└── generate-and-run.sh

🖋 GAPIC :: Library Partials

So you want to write a partial helper, eh?

Hand-written code adds all kinds of functionality on top of generated GAPIC client libraries!

Let's look at the most common type of hand-written extension:

>> Helper Methods added to service object which wraps call to 1 rpc method <<