proxy.golang.org : github.com/xujiajun/protorpc
Package protorpc implements a Protobuf-RPC ClientCodec and ServerCodec for the rpc package. To install it, you must first have Go (version 1) installed (see http://golang.org/doc/install). Next, install the standard protocol buffer implementation from http://github.com/google/protobuf/; you must be running version 2.3 or higher. Finally run to install the support library and protocol compiler. Here is a simple proto file("arith.pb/arith.proto"): Then use "protoc-gen-go" to generate "arith.pb.go" file(include rpc stub): The server calls (for TCP service): At this point, clients can see a service "Arith" with methods "ArithService.Multiply" and "ArithService.Divide". To invoke one, a client first dials the server: Then it can make a remote call with stub: More example: Report bugs to <[email protected]>. Thanks!
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/xujiajun/protorpc
License: BSD-3-Clause
Latest release: over 7 years ago
First release: over 7 years ago
Namespace: github.com/xujiajun
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 11 days ago