Discover Packages
github.com/yugui/grpc-custom-serializer
go
package
Version:
v0.0.0-...-8cf2775
Opens a new window with list of versions in this module.
Published: Feb 27, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Custom serialization in GRPC (Go)
This pair of client/server implementations shows how to customize the
serialization method in GRPC in Go.
Prerequisites
e.g.
$ brew install go protobuf
$ go get github.com/golang/protobuf
Build steps
$ go get github.com/yugui/grpc-custom-serializer/go
$ cd go
$ go generate
$ go build -o greeter_client github.com/yugui/grpc-custom-serializer/go/client
$ go build -o greeter_server github.com/yugui/grpc-custom-serializer/go/server
$ ./greeter_server -logtostderr &
$ ./greeter_client -logtostderr -name=$USER
How to build with Bazel
$ bazel build //go/...
$ bazel-bin/go/server/darwin_amd64_stripped/server -logtostderr &
$ bazel-bin/go/client/darwin_amd64_stripped/client -logtostderr -name=$USER
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
client is an example gRPC client application which encodes messages in JSON instead of protobuf.
client is an example gRPC client application which encodes messages in JSON instead of protobuf.
Package encoding defines the JSON codec.
Package encoding defines the JSON codec.
server is an example gRPC server application which encodes messages in JSON instead of protobuf.
server is an example gRPC server application which encodes messages in JSON instead of protobuf.
Click to show internal directories.
Click to hide internal directories.