├── LICENSE ├── README.md ├── TUTORIAL_EN.md ├── TUTORIAL_ZH.md ├── chanrpc ├── chanrpc.go └── example_test.go ├── cluster └── cluster.go ├── conf └── conf.go ├── console ├── command.go └── console.go ├── db └── mongodb │ ├── example_test.go │ └── mongodb.go ├── gate ├── agent.go └── gate.go ├── go ├── example_test.go └── go.go ├── leaf.go ├── log ├── example_test.go └── log.go ├── module ├── module.go └── skeleton.go ├── network ├── agent.go ├── conn.go ├── json │ └── json.go ├── processor.go ├── protobuf │ └── protobuf.go ├── tcp_client.go ├── tcp_conn.go ├── tcp_msg.go ├── tcp_server.go ├── ws_client.go ├── ws_conn.go └── ws_server.go ├── recordfile ├── example_test.go ├── recordfile.go └── test.txt ├── timer ├── cronexpr.go ├── example_test.go └── timer.go ├── util ├── deepcopy.go ├── example_test.go ├── map.go ├── rand.go └── semaphore.go └── version.go /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/README.md -------------------------------------------------------------------------------- /TUTORIAL_EN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/TUTORIAL_EN.md -------------------------------------------------------------------------------- /TUTORIAL_ZH.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/TUTORIAL_ZH.md -------------------------------------------------------------------------------- /chanrpc/chanrpc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/chanrpc/chanrpc.go -------------------------------------------------------------------------------- /chanrpc/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/chanrpc/example_test.go -------------------------------------------------------------------------------- /cluster/cluster.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/cluster/cluster.go -------------------------------------------------------------------------------- /conf/conf.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/conf/conf.go -------------------------------------------------------------------------------- /console/command.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/console/command.go -------------------------------------------------------------------------------- /console/console.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/console/console.go -------------------------------------------------------------------------------- /db/mongodb/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/db/mongodb/example_test.go -------------------------------------------------------------------------------- /db/mongodb/mongodb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/db/mongodb/mongodb.go -------------------------------------------------------------------------------- /gate/agent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/gate/agent.go -------------------------------------------------------------------------------- /gate/gate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/gate/gate.go -------------------------------------------------------------------------------- /go/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/go/example_test.go -------------------------------------------------------------------------------- /go/go.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/go/go.go -------------------------------------------------------------------------------- /leaf.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/leaf.go -------------------------------------------------------------------------------- /log/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/log/example_test.go -------------------------------------------------------------------------------- /log/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/log/log.go -------------------------------------------------------------------------------- /module/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/module/module.go -------------------------------------------------------------------------------- /module/skeleton.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/module/skeleton.go -------------------------------------------------------------------------------- /network/agent.go: -------------------------------------------------------------------------------- 1 | package network 2 | 3 | type Agent interface { 4 | Run() 5 | OnClose() 6 | } 7 | -------------------------------------------------------------------------------- /network/conn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/network/conn.go -------------------------------------------------------------------------------- /network/json/json.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/network/json/json.go -------------------------------------------------------------------------------- /network/processor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/network/processor.go -------------------------------------------------------------------------------- /network/protobuf/protobuf.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/network/protobuf/protobuf.go -------------------------------------------------------------------------------- /network/tcp_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/network/tcp_client.go -------------------------------------------------------------------------------- /network/tcp_conn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/network/tcp_conn.go -------------------------------------------------------------------------------- /network/tcp_msg.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/network/tcp_msg.go -------------------------------------------------------------------------------- /network/tcp_server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/network/tcp_server.go -------------------------------------------------------------------------------- /network/ws_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/network/ws_client.go -------------------------------------------------------------------------------- /network/ws_conn.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/network/ws_conn.go -------------------------------------------------------------------------------- /network/ws_server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/network/ws_server.go -------------------------------------------------------------------------------- /recordfile/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/recordfile/example_test.go -------------------------------------------------------------------------------- /recordfile/recordfile.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/recordfile/recordfile.go -------------------------------------------------------------------------------- /recordfile/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/recordfile/test.txt -------------------------------------------------------------------------------- /timer/cronexpr.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/timer/cronexpr.go -------------------------------------------------------------------------------- /timer/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/timer/example_test.go -------------------------------------------------------------------------------- /timer/timer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/timer/timer.go -------------------------------------------------------------------------------- /util/deepcopy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/util/deepcopy.go -------------------------------------------------------------------------------- /util/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/util/example_test.go -------------------------------------------------------------------------------- /util/map.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/util/map.go -------------------------------------------------------------------------------- /util/rand.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/util/rand.go -------------------------------------------------------------------------------- /util/semaphore.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/name5566/leaf/HEAD/util/semaphore.go -------------------------------------------------------------------------------- /version.go: -------------------------------------------------------------------------------- 1 | package leaf 2 | 3 | const version = "1.1.3" 4 | --------------------------------------------------------------------------------