Skip to content

jmuk/fib-grpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fib server.

It is a hypothetical example of gRPC server to conduct some longrunning operations. The server implements both FibService and longrunning.OperationsService. FibService receives a request of calculating a fibonacci number, and then returns the name of the operation immediately.

The operation runs in background and its status can be fetched through OperationsService (right now it only implements GetOperation for simplicity).

How to build

% go build -o bin/server ./cmd/server
% go build -o bin/client ./cmd/client

Sample usage

% ./bin/server &
% ./bin/client -n 45

How to generate files from proto

We use buf CLI for that (see https://buf.build/).

% buf generate
% buf generate buf.build/googleapis/googleapis --template buf.gen.con.yaml --path google/longrunning

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages