Categorygithub.com/bigdot123456/rpcwork
modulepackage
0.0.0-20190924025707-4d5c92d91444
Repository: https://github.com/bigdot123456/rpcwork.git
Documentation: pkg.go.dev

# README

RPCWork

  1. Create project
echo "# RPCWork" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/bigdot123456/RPCWork.git
git push -u origin master
  1. notice

server should listen all ip, as this code :

var (
	addr = flag.String("addr", "0.0.0.0:8972", "server address")
)

localhost is an error for other ip access

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

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
go run -tags kcp server.go.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
go run -tags quic server.go.
No description provided by the author
No description provided by the author
No description provided by the author
Package example defines datastructure and services.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
go run -tags rudp server.go.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author