├── .gitignore ├── LICENSE ├── README.md ├── app ├── actor.go ├── app.go └── module.go ├── config ├── README.md ├── config.go ├── consul.go ├── group.go └── loader.go ├── example ├── README.md ├── calculator │ ├── calculator.go │ ├── event.go │ └── main.go ├── client │ └── main.go ├── config │ ├── config.go │ ├── json │ │ ├── price.json │ │ ├── price_b.json │ │ └── user.json │ ├── main.go │ └── mod_work.go ├── go.mod ├── go.sum ├── nicepb │ ├── build.sh │ ├── nice.proto │ ├── nice │ │ ├── nice.pb.go │ │ ├── nice_autoregister.go │ │ ├── nice_vtproto.pb.go │ │ ├── rpc.pb.go │ │ └── rpc_grain.pb.go │ ├── rpc.proto │ └── vt_test.go ├── pairpb │ ├── build.sh │ ├── pair.proto │ └── pair │ │ ├── pair.pb.go │ │ ├── pair_autoregisterpair.go │ │ └── pair_vtproto.pb.go ├── server │ ├── main.go │ ├── msg_dispatcher.go │ ├── msg_handler.go │ └── nice_module.go └── unity_network.zip ├── go.mod ├── go.sum ├── log ├── logger.go ├── protoactor.go └── webhook.go ├── net ├── codec.go ├── codec_json.go ├── codec_pb.go ├── codec_pbpair.go ├── listener.go ├── listener_kcp.go ├── listener_tcp.go ├── listener_ws.go ├── manager.go ├── msghandler.go ├── packet.go └── session.go ├── pb ├── README.md ├── protoc-gen-autoregister │ └── main.go ├── protoc-gen-autoregisterpair │ └── main.go ├── register.go └── vt │ └── reg.go ├── pool └── type.go ├── potato.go ├── rpc └── manager.go └── util ├── lan.go ├── recovery.go └── type.go /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/README.md -------------------------------------------------------------------------------- /app/actor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/app/actor.go -------------------------------------------------------------------------------- /app/app.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/app/app.go -------------------------------------------------------------------------------- /app/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/app/module.go -------------------------------------------------------------------------------- /config/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/config/README.md -------------------------------------------------------------------------------- /config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/config/config.go -------------------------------------------------------------------------------- /config/consul.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/config/consul.go -------------------------------------------------------------------------------- /config/group.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/config/group.go -------------------------------------------------------------------------------- /config/loader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/config/loader.go -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/README.md -------------------------------------------------------------------------------- /example/calculator/calculator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/calculator/calculator.go -------------------------------------------------------------------------------- /example/calculator/event.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/calculator/event.go -------------------------------------------------------------------------------- /example/calculator/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/calculator/main.go -------------------------------------------------------------------------------- /example/client/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/client/main.go -------------------------------------------------------------------------------- /example/config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/config/config.go -------------------------------------------------------------------------------- /example/config/json/price.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/config/json/price.json -------------------------------------------------------------------------------- /example/config/json/price_b.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/config/json/price_b.json -------------------------------------------------------------------------------- /example/config/json/user.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/config/json/user.json -------------------------------------------------------------------------------- /example/config/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/config/main.go -------------------------------------------------------------------------------- /example/config/mod_work.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/config/mod_work.go -------------------------------------------------------------------------------- /example/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/go.mod -------------------------------------------------------------------------------- /example/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/go.sum -------------------------------------------------------------------------------- /example/nicepb/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/nicepb/build.sh -------------------------------------------------------------------------------- /example/nicepb/nice.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/nicepb/nice.proto -------------------------------------------------------------------------------- /example/nicepb/nice/nice.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/nicepb/nice/nice.pb.go -------------------------------------------------------------------------------- /example/nicepb/nice/nice_autoregister.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/nicepb/nice/nice_autoregister.go -------------------------------------------------------------------------------- /example/nicepb/nice/nice_vtproto.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/nicepb/nice/nice_vtproto.pb.go -------------------------------------------------------------------------------- /example/nicepb/nice/rpc.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/nicepb/nice/rpc.pb.go -------------------------------------------------------------------------------- /example/nicepb/nice/rpc_grain.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/nicepb/nice/rpc_grain.pb.go -------------------------------------------------------------------------------- /example/nicepb/rpc.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/nicepb/rpc.proto -------------------------------------------------------------------------------- /example/nicepb/vt_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/nicepb/vt_test.go -------------------------------------------------------------------------------- /example/pairpb/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/pairpb/build.sh -------------------------------------------------------------------------------- /example/pairpb/pair.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/pairpb/pair.proto -------------------------------------------------------------------------------- /example/pairpb/pair/pair.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/pairpb/pair/pair.pb.go -------------------------------------------------------------------------------- /example/pairpb/pair/pair_autoregisterpair.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/pairpb/pair/pair_autoregisterpair.go -------------------------------------------------------------------------------- /example/pairpb/pair/pair_vtproto.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/pairpb/pair/pair_vtproto.pb.go -------------------------------------------------------------------------------- /example/server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/server/main.go -------------------------------------------------------------------------------- /example/server/msg_dispatcher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/server/msg_dispatcher.go -------------------------------------------------------------------------------- /example/server/msg_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/server/msg_handler.go -------------------------------------------------------------------------------- /example/server/nice_module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/server/nice_module.go -------------------------------------------------------------------------------- /example/unity_network.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/example/unity_network.zip -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/go.sum -------------------------------------------------------------------------------- /log/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/log/logger.go -------------------------------------------------------------------------------- /log/protoactor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/log/protoactor.go -------------------------------------------------------------------------------- /log/webhook.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/log/webhook.go -------------------------------------------------------------------------------- /net/codec.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/net/codec.go -------------------------------------------------------------------------------- /net/codec_json.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/net/codec_json.go -------------------------------------------------------------------------------- /net/codec_pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/net/codec_pb.go -------------------------------------------------------------------------------- /net/codec_pbpair.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/net/codec_pbpair.go -------------------------------------------------------------------------------- /net/listener.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/net/listener.go -------------------------------------------------------------------------------- /net/listener_kcp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/net/listener_kcp.go -------------------------------------------------------------------------------- /net/listener_tcp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/net/listener_tcp.go -------------------------------------------------------------------------------- /net/listener_ws.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/net/listener_ws.go -------------------------------------------------------------------------------- /net/manager.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/net/manager.go -------------------------------------------------------------------------------- /net/msghandler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/net/msghandler.go -------------------------------------------------------------------------------- /net/packet.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/net/packet.go -------------------------------------------------------------------------------- /net/session.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/net/session.go -------------------------------------------------------------------------------- /pb/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/pb/README.md -------------------------------------------------------------------------------- /pb/protoc-gen-autoregister/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/pb/protoc-gen-autoregister/main.go -------------------------------------------------------------------------------- /pb/protoc-gen-autoregisterpair/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/pb/protoc-gen-autoregisterpair/main.go -------------------------------------------------------------------------------- /pb/register.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/pb/register.go -------------------------------------------------------------------------------- /pb/vt/reg.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/pb/vt/reg.go -------------------------------------------------------------------------------- /pool/type.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/pool/type.go -------------------------------------------------------------------------------- /potato.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/potato.go -------------------------------------------------------------------------------- /rpc/manager.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/rpc/manager.go -------------------------------------------------------------------------------- /util/lan.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/util/lan.go -------------------------------------------------------------------------------- /util/recovery.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/util/recovery.go -------------------------------------------------------------------------------- /util/type.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/murang/potato/HEAD/util/type.go --------------------------------------------------------------------------------