grpc/

directory
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT

README

Waves Node gRPC

Installation

Install gRPC & Protobuf:

go get -u google.golang.org/grpc
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go

Package structure

  • grpc/proto/ - a copy of proto files from protobuf-schemas project. Files are copied from folders proto/waves/ and proto/waves/node/grpc. And import directives updated afterwards to reflect the flat structure.
  • grpc/generated - code generated from proto files.
  • grpc/server - gRPC server implementation (API).

Rebuilding

Before rebuilding it's required to add to all *.proto files the following line:

option go_package = "generated";

Execute the following command to regenerate the code.

protoc --proto_path=pkg/grpc/proto --go_out=plugins=grpc:pkg/grpc/generated pkg/grpc/proto/*.proto

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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