greeterproto

package
v0.0.0-...-8cf2775 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

README

Custom serialization in GRPC (Go)

This pair of client/server implementations shows how to customize the serialization method in GRPC in Go.

How to build with go tool chain

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
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.

Jump to

Keyboard shortcuts

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