README
¶
Examples for rpcx 3.0
A lot of examples for rpcx 3.0
How to run
you should build rpcx with necessary tags, otherwise only need to install rpcx:
go get -u -v github.com/smallnest/rpcx/...
if you want to use "zookeeper" registry, you need to add tag zookeeper
,
go get -u -v -tags "zookeeper" github.com/smallnest/rpcx/...
Similarly, if you want to use etcd
registry and quic
network, you need to :
go get -u -v -tags "etcd quic" github.com/smallnest/rpcx/...
You can install all features of rpcx with those below tags:
go get -u -v -tags "zookeeper etcd consul ping quic kcp reuseport" github.com/smallnest/rpcx/...
If you install succeefullly, you can run examples in this repository.
Enter one sub directory in this repository, go run server.go
in one terminal and cd client; go run client.go
in another ternimal, and you can watch the run result.
For example,
cd 101basic
go run server.go
And
cd 101basic/client
go run client.go
Documentation
¶
Directories
¶
Path | Synopsis |
---|---|
codec
|
|
failmode
|
|
go run -tags kcp server.go
|
go run -tags kcp server.go |
client
go run -tags kcp client.go
|
go run -tags kcp client.go |
go run -tags quic server.go
|
go run -tags quic server.go |
client
go run -tags quic client.go
|
go run -tags quic client.go |
registry
|
|
consul
go run -tags consul server.go
|
go run -tags consul server.go |
consul_pool
go run -tags consul server.go
|
go run -tags consul server.go |
etcd
go run -tags etcd server.go go run -tags etcd server.go
|
go run -tags etcd server.go go run -tags etcd server.go |
etcd/client
go run -tags etcd client.go
|
go run -tags etcd client.go |
inprocess
go run -tags etcd server.go
|
go run -tags etcd server.go |
mdns/client
go run -tags etcd client.go
|
go run -tags etcd client.go |
zookeeper
go run -tags zookeeper server.go
|
go run -tags zookeeper server.go |
zookeeper/client
go run -tags zookeeper client.go
|
go run -tags zookeeper client.go |
selector
|
|
Click to show internal directories.
Click to hide internal directories.