SYMBOL INDEX (1240 symbols across 180 files) FILE: examples/zinx_RequestPollMode/client/client.go function business (line 16) | func business(conn ziface.IConnection) { function DoClientConnectedBegin (line 37) | func DoClientConnectedBegin(conn ziface.IConnection) { function DoClientConnectedLost (line 48) | func DoClientConnectedLost(conn ziface.IConnection) { function main (line 62) | func main() { FILE: examples/zinx_RequestPollMode/no_pool_mode_server/NoPoolModeServer.go function NoPoll1 (line 14) | func NoPoll1(request ziface.IRequest) { function NoPoll2 (line 19) | func NoPoll2(request ziface.IRequest) { function NoPoll4 (line 26) | func NoPoll4(request ziface.IRequest) { function main (line 31) | func main() { FILE: examples/zinx_RequestPollMode/pool_mode_server/PoolModeServer.go function Poll1 (line 12) | func Poll1(request ziface.IRequest) { function Poll2 (line 26) | func Poll2(request ziface.IRequest) { function Poll3 (line 46) | func Poll3(request ziface.IRequest) { function Poll4 (line 54) | func Poll4(request ziface.IRequest) { function main (line 59) | func main() { FILE: examples/zinx_async_op/async_op_apis/user_async_api.go function AsyncUserSaveData (line 9) | func AsyncUserSaveData(request ziface.IRequest) *zasync_op.AsyncOpResult { FILE: examples/zinx_async_op/client/client.go function main (line 11) | func main() { FILE: examples/zinx_async_op/db_model/user_dao.go type UserModel (line 9) | type UserModel struct function SaveUserData (line 15) | func SaveUserData() *UserModel { FILE: examples/zinx_async_op/msg_struct/user_login.go type MsgLoginResponse (line 3) | type MsgLoginResponse struct FILE: examples/zinx_async_op/router/login.go type LoginRouter (line 15) | type LoginRouter struct method Handle (line 19) | func (hr *LoginRouter) Handle(request ziface.IRequest) { FILE: examples/zinx_async_op/server/server.go function OnConnectionAdd (line 10) | func OnConnectionAdd(conn ziface.IConnection) { function OnConnectionLost (line 14) | func OnConnectionLost(conn ziface.IConnection) { function main (line 18) | func main() { FILE: examples/zinx_client/c_router/hello.go type HelloRouter (line 9) | type HelloRouter struct method Handle (line 14) | func (this *HelloRouter) Handle(request ziface.IRequest) { FILE: examples/zinx_client/c_router/ping.go type PingRouter (line 10) | type PingRouter struct method Handle (line 15) | func (this *PingRouter) Handle(request ziface.IRequest) { FILE: examples/zinx_client/main.go function business (line 21) | func business(conn ziface.IConnection) { function DoClientConnectedBegin (line 36) | func DoClientConnectedBegin(conn ziface.IConnection) { function DoClientConnectedLost (line 47) | func DoClientConnectedLost(conn ziface.IConnection) { function main (line 61) | func main() { FILE: examples/zinx_client_old/c_router/hello.go type HelloRouter (line 9) | type HelloRouter struct method Handle (line 14) | func (this *HelloRouter) Handle(request ziface.IRequest) { FILE: examples/zinx_client_old/c_router/ping.go type PingRouter (line 10) | type PingRouter struct method Handle (line 15) | func (this *PingRouter) Handle(request ziface.IRequest) { FILE: examples/zinx_client_old/main.go function main (line 17) | func main() { FILE: examples/zinx_closecallback/client/client.go function business (line 16) | func business(conn ziface.IConnection) { function DoClientConnectedBegin (line 34) | func DoClientConnectedBegin(conn ziface.IConnection) { function DoClientConnectedLost (line 54) | func DoClientConnectedLost(conn ziface.IConnection) { function main (line 58) | func main() { FILE: examples/zinx_closecallback/router/ping_router.go type PingRouter (line 12) | type PingRouter struct method PreHandle (line 18) | func (r *PingRouter) PreHandle(req ziface.IRequest) { method Handle (line 23) | func (r *PingRouter) Handle(req ziface.IRequest) { method PostHandle (line 32) | func (r *PingRouter) PostHandle(req ziface.IRequest) { FILE: examples/zinx_closecallback/server/server.go function DoConnectionBegin (line 14) | func DoConnectionBegin(conn ziface.IConnection) { function DoConnectionLost (line 41) | func DoConnectionLost(conn ziface.IConnection) { function main (line 45) | func main() { FILE: examples/zinx_decoder/bili/main.go function DoConnectionBegin (line 10) | func DoConnectionBegin(conn ziface.IConnection) { function DoConnectionLost (line 13) | func DoConnectionLost(conn ziface.IConnection) { function main (line 16) | func main() { FILE: examples/zinx_decoder/bili/router/bili0x10router.go type Data0x10Router (line 12) | type Data0x10Router struct method Handle (line 16) | func (this *Data0x10Router) Handle(request ziface.IRequest) { function pack10 (line 34) | func pack10(_data zdecoder.HtlvCrcDecoder) []byte { FILE: examples/zinx_decoder/bili/router/bili0x13router.go type Data0x13Router (line 11) | type Data0x13Router struct method Handle (line 15) | func (this *Data0x13Router) Handle(request ziface.IRequest) { function pack13 (line 33) | func pack13(_data zdecoder.HtlvCrcDecoder) []byte { FILE: examples/zinx_decoder/bili/router/bili0x14router.go type Data0x14Router (line 11) | type Data0x14Router struct method Handle (line 15) | func (this *Data0x14Router) Handle(request ziface.IRequest) { function pack14 (line 33) | func pack14(_data zdecoder.HtlvCrcDecoder) []byte { FILE: examples/zinx_decoder/bili/router/bili0x15router.go type Data0x15Router (line 11) | type Data0x15Router struct method Handle (line 15) | func (this *Data0x15Router) Handle(request ziface.IRequest) { function pack15 (line 33) | func pack15(_data zdecoder.HtlvCrcDecoder) []byte { FILE: examples/zinx_decoder/bili/router/bili0x16router.go type Data0x16Router (line 11) | type Data0x16Router struct method Handle (line 15) | func (this *Data0x16Router) Handle(request ziface.IRequest) { function pack16 (line 35) | func pack16(_data zdecoder.HtlvCrcDecoder) []byte { FILE: examples/zinx_decoder/client/client.go function getTLVPackData (line 17) | func getTLVPackData() []byte { function getTLVData (line 36) | func getTLVData(index int) []byte { function getHTLVCRCData (line 61) | func getHTLVCRCData(index int) []byte { function business (line 86) | func business(conn ziface.IConnection) { function DoClientConnectedBegin (line 97) | func DoClientConnectedBegin(conn ziface.IConnection) { function main (line 102) | func main() { FILE: examples/zinx_decoder/router/htlvcrcbusinessrouter.go type HtlvCrcBusinessRouter (line 11) | type HtlvCrcBusinessRouter struct method Handle (line 15) | func (this *HtlvCrcBusinessRouter) Handle(request ziface.IRequest) { FILE: examples/zinx_decoder/router/tlvbusinessrouter.go type TLVBusinessRouter (line 10) | type TLVBusinessRouter struct method Handle (line 14) | func (this *TLVBusinessRouter) Handle(request ziface.IRequest) { FILE: examples/zinx_decoder/server/server.go function DoConnectionBegin (line 11) | func DoConnectionBegin(conn ziface.IConnection) { function DoConnectionLost (line 15) | func DoConnectionLost(conn ziface.IConnection) { function main (line 19) | func main() { FILE: examples/zinx_dynamic_bind/client/client.go constant PingType (line 14) | PingType = 1 constant PongType (line 15) | PongType = 2 type PongRouter (line 19) | type PongRouter struct method Handle (line 26) | func (p *PongRouter) Handle(request ziface.IRequest) { function onClient1Start (line 32) | func onClient1Start(conn ziface.IConnection) { function onClient2Start (line 41) | func onClient2Start(conn ziface.IConnection) { function onClient3Start (line 50) | func onClient3Start(conn ziface.IConnection) { function main (line 59) | func main() { FILE: examples/zinx_dynamic_bind/server/server.go function OnConnectionAdd (line 12) | func OnConnectionAdd(conn ziface.IConnection) { function OnConnectionLost (line 16) | func OnConnectionLost(conn ziface.IConnection) { type blockRouter (line 20) | type blockRouter struct method Handle (line 27) | func (r *blockRouter) Handle(request ziface.IRequest) { function main (line 49) | func main() { FILE: examples/zinx_heartbeat/client/client.go function myClientHeartBeatMsg (line 12) | func myClientHeartBeatMsg(conn ziface.IConnection) []byte { function myClientOnRemoteNotAlive (line 18) | func myClientOnRemoteNotAlive(conn ziface.IConnection) { type myClientHeartBeatRouter (line 25) | type myClientHeartBeatRouter struct method Handle (line 29) | func (r *myClientHeartBeatRouter) Handle(request ziface.IRequest) { function main (line 33) | func main() { FILE: examples/zinx_heartbeat/client_default/client_default.go function main (line 9) | func main() { FILE: examples/zinx_heartbeat/server/server.go function myHeartBeatMsg (line 12) | func myHeartBeatMsg(conn ziface.IConnection) []byte { function myOnRemoteNotAlive (line 18) | func myOnRemoteNotAlive(conn ziface.IConnection) { type myHeartBeatRouter (line 25) | type myHeartBeatRouter struct method Handle (line 29) | func (r *myHeartBeatRouter) Handle(request ziface.IRequest) { function main (line 33) | func main() { FILE: examples/zinx_heartbeat/server_default/server_default.go function main (line 8) | func main() { FILE: examples/zinx_interceptor/client/client.go function main (line 10) | func main() { FILE: examples/zinx_interceptor/interceptors/interceptor_1.go type MyInterceptor (line 10) | type MyInterceptor struct method Intercept (line 12) | func (m *MyInterceptor) Intercept(chain ziface.IChain) ziface.IcResp { FILE: examples/zinx_interceptor/router/route.go type HelloRouter (line 9) | type HelloRouter struct method Handle (line 13) | func (hr *HelloRouter) Handle(request ziface.IRequest) { FILE: examples/zinx_interceptor/server/server.go function main (line 9) | func main() { FILE: examples/zinx_kcp/client/kcp_client.go function main (line 13) | func main() { FILE: examples/zinx_kcp/server/server.go type TestRouter (line 13) | type TestRouter struct method PreHandle (line 20) | func (t *TestRouter) PreHandle(req ziface.IRequest) { method Handle (line 32) | func (t *TestRouter) Handle(req ziface.IRequest) { method PostHandle (line 57) | func (t *TestRouter) PostHandle(req ziface.IRequest) { function Err (line 64) | func Err() error { function main (line 69) | func main() { FILE: examples/zinx_logger/client/client.go function business (line 14) | func business(conn ziface.IConnection) { function DoClientConnectedBegin (line 28) | func DoClientConnectedBegin(conn ziface.IConnection) { function DoClientConnectedLost (line 37) | func DoClientConnectedLost(conn ziface.IConnection) { function main (line 49) | func main() { FILE: examples/zinx_logger/server/my_logger.go type MyLogger (line 14) | type MyLogger struct method InfoF (line 17) | func (l *MyLogger) InfoF(format string, v ...interface{}) { method ErrorF (line 21) | func (l *MyLogger) ErrorF(format string, v ...interface{}) { method DebugF (line 25) | func (l *MyLogger) DebugF(format string, v ...interface{}) { method InfoFX (line 30) | func (l *MyLogger) InfoFX(ctx context.Context, format string, v ...int... method ErrorFX (line 35) | func (l *MyLogger) ErrorFX(ctx context.Context, format string, v ...in... method DebugFX (line 40) | func (l *MyLogger) DebugFX(ctx context.Context, format string, v ...in... FILE: examples/zinx_logger/server/server.go type TestRouter (line 12) | type TestRouter struct method PreHandle (line 17) | func (t *TestRouter) PreHandle(req ziface.IRequest) { method Handle (line 29) | func (t *TestRouter) Handle(req ziface.IRequest) { method PostHandle (line 38) | func (t *TestRouter) PostHandle(req ziface.IRequest) { function main (line 45) | func main() { FILE: examples/zinx_metrics/client/c1/client.go function business (line 14) | func business(conn ziface.IConnection) { function DoClientConnectedBegin (line 28) | func DoClientConnectedBegin(conn ziface.IConnection) { function DoClientConnectedLost (line 38) | func DoClientConnectedLost(conn ziface.IConnection) { function main (line 50) | func main() { FILE: examples/zinx_metrics/client/c2/client.go function business (line 14) | func business(conn ziface.IConnection) { function DoClientConnectedBegin (line 28) | func DoClientConnectedBegin(conn ziface.IConnection) { function DoClientConnectedLost (line 37) | func DoClientConnectedLost(conn ziface.IConnection) { function main (line 49) | func main() { FILE: examples/zinx_metrics/server/server.go function DoConnectionBegin (line 10) | func DoConnectionBegin(conn ziface.IConnection) { function DoConnectionLost (line 22) | func DoConnectionLost(conn ziface.IConnection) { function main (line 36) | func main() { FILE: examples/zinx_mutiport/client8999/client.go function business (line 14) | func business(conn ziface.IConnection) { function DoClientConnectedBegin (line 28) | func DoClientConnectedBegin(conn ziface.IConnection) { function DoClientConnectedLost (line 38) | func DoClientConnectedLost(conn ziface.IConnection) { function main (line 50) | func main() { FILE: examples/zinx_mutiport/client9000/client.go function business (line 14) | func business(conn ziface.IConnection) { function DoClientConnectedBegin (line 28) | func DoClientConnectedBegin(conn ziface.IConnection) { function DoClientConnectedLost (line 37) | func DoClientConnectedLost(conn ziface.IConnection) { function main (line 49) | func main() { FILE: examples/zinx_mutiport/server/server.go function DoConnectionBegin (line 15) | func DoConnectionBegin(conn ziface.IConnection) { function DoConnectionLost (line 29) | func DoConnectionLost(conn ziface.IConnection) { function main (line 43) | func main() { FILE: examples/zinx_new_router/client/client.go function main (line 13) | func main() { FILE: examples/zinx_new_router/server/server.go type TestRouter (line 11) | type TestRouter struct method PreHandle (line 16) | func (t *TestRouter) PreHandle(req ziface.IRequest) { method Handle (line 28) | func (t *TestRouter) Handle(req ziface.IRequest) { method PostHandle (line 56) | func (t *TestRouter) PostHandle(req ziface.IRequest) { function Err (line 63) | func Err() error { function main (line 68) | func main() { FILE: examples/zinx_protobuf/client/client.go type PositionClientRouter (line 14) | type PositionClientRouter struct method Handle (line 18) | func (this *PositionClientRouter) Handle(request ziface.IRequest) { function business (line 32) | func business(conn ziface.IConnection) { function DoClientConnectedBegin (line 58) | func DoClientConnectedBegin(conn ziface.IConnection) { function wait (line 65) | func wait() { function main (line 72) | func main() { FILE: examples/zinx_protobuf/server/server.go type PositionServerRouter (line 13) | type PositionServerRouter struct method Handle (line 18) | func (this *PositionServerRouter) Handle(request ziface.IRequest) { function main (line 47) | func main() { FILE: examples/zinx_routerSlices/client/client.go function main (line 9) | func main() { FILE: examples/zinx_routerSlices/default_func_server/server.go function DefaultTest1 (line 11) | func DefaultTest1(request ziface.IRequest) { function DefaultTest2 (line 14) | func DefaultTest2(request ziface.IRequest) { function main (line 20) | func main() { FILE: examples/zinx_routerSlices/router_func_server/server.go function Auth1 (line 10) | func Auth1(request ziface.IRequest) { function Auth2 (line 20) | func Auth2(request ziface.IRequest) { function Auth3 (line 29) | func Auth3(request ziface.IRequest) { function TestFunc (line 35) | func TestFunc(request ziface.IRequest) { function main (line 39) | func main() { FILE: examples/zinx_routerSlices/router_group_server/server.go function Test1 (line 11) | func Test1(request ziface.IRequest) { function Test2 (line 14) | func Test2(request ziface.IRequest) { function Test3 (line 17) | func Test3(request ziface.IRequest) { function Test4 (line 20) | func Test4(request ziface.IRequest) { function Test5 (line 23) | func Test5(request ziface.IRequest) { function Test6 (line 26) | func Test6(request ziface.IRequest) { type router (line 30) | type router struct method PreHandle (line 34) | func (r *router) PreHandle(req ziface.IRequest) { method Handle (line 37) | func (r *router) Handle(req ziface.IRequest) { method PostHandle (line 41) | func (r *router) PostHandle(req ziface.IRequest) { function main (line 45) | func main() { FILE: examples/zinx_server/main.go function DoConnectionBegin (line 18) | func DoConnectionBegin(conn ziface.IConnection) { function DoConnectionLost (line 33) | func DoConnectionLost(conn ziface.IConnection) { function main (line 47) | func main() { FILE: examples/zinx_server/s_router/hello.go type HelloZinxRouter (line 9) | type HelloZinxRouter struct method Handle (line 14) | func (this *HelloZinxRouter) Handle(request ziface.IRequest) { FILE: examples/zinx_server/s_router/ping.go type PingRouter (line 10) | type PingRouter struct method Handle (line 15) | func (this *PingRouter) Handle(request ziface.IRequest) { FILE: examples/zinx_tls/client/client.go type PongRouter (line 14) | type PongRouter struct method Handle (line 19) | func (this *PongRouter) Handle(request ziface.IRequest) { function wait (line 27) | func wait() { function main (line 34) | func main() { FILE: examples/zinx_tls/server/server.go type PingRouter (line 21) | type PingRouter struct method Handle (line 26) | func (this *PingRouter) Handle(request ziface.IRequest) { function genExampleCrtAndKeyFile (line 42) | func genExampleCrtAndKeyFile(crtFileName, KeyFileName string) (err error) { function main (line 110) | func main() { FILE: examples/zinx_version_ex/ZinxV0.10Test/client0/Client0.go function main (line 14) | func main() { FILE: examples/zinx_version_ex/ZinxV0.10Test/client1/Client1.go function main (line 14) | func main() { FILE: examples/zinx_version_ex/ZinxV0.10Test/server/Server.go type PingRouter (line 10) | type PingRouter struct method Handle (line 15) | func (this *PingRouter) Handle(request ziface.IRequest) { type HelloZinxRouter (line 26) | type HelloZinxRouter struct method Handle (line 31) | func (this *HelloZinxRouter) Handle(request ziface.IRequest) { function DoConnectionBegin (line 43) | func DoConnectionBegin(conn ziface.IConnection) { function DoConnectionLost (line 58) | func DoConnectionLost(conn ziface.IConnection) { function main (line 71) | func main() { FILE: examples/zinx_version_ex/ZinxV0.11Test/client0/Client0.go function main (line 14) | func main() { FILE: examples/zinx_version_ex/ZinxV0.11Test/client1/Client1.go function main (line 14) | func main() { FILE: examples/zinx_version_ex/ZinxV0.11Test/server/Server.go type PingRouter (line 16) | type PingRouter struct method Handle (line 21) | func (this *PingRouter) Handle(request ziface.IRequest) { type HelloZinxRouter (line 33) | type HelloZinxRouter struct method Handle (line 38) | func (this *HelloZinxRouter) Handle(request ziface.IRequest) { function DoConnectionBegin (line 50) | func DoConnectionBegin(conn ziface.IConnection) { function DoConnectionLost (line 65) | func DoConnectionLost(conn ziface.IConnection) { function main (line 78) | func main() { FILE: examples/zinx_version_ex/ZinxV0.1Test/client/client.go function main (line 12) | func main() { FILE: examples/zinx_version_ex/ZinxV0.1Test/server/server.go function main (line 8) | func main() { FILE: examples/zinx_version_ex/ZinxV0.2Test/client/client.go function main (line 12) | func main() { FILE: examples/zinx_version_ex/ZinxV0.2Test/server/server.go function main (line 8) | func main() { FILE: examples/zinx_version_ex/ZinxV0.3Test/client/client.go function main (line 12) | func main() { FILE: examples/zinx_version_ex/ZinxV0.3Test/server/server.go type PingRouter (line 11) | type PingRouter struct method PreHandle (line 16) | func (this *PingRouter) PreHandle(request ziface.IRequest) { method Handle (line 25) | func (this *PingRouter) Handle(request ziface.IRequest) { method PostHandle (line 34) | func (this *PingRouter) PostHandle(request ziface.IRequest) { function main (line 42) | func main() { FILE: examples/zinx_version_ex/ZinxV0.4Test/client/client.go function main (line 12) | func main() { FILE: examples/zinx_version_ex/ZinxV0.4Test/server/server.go type PingRouter (line 11) | type PingRouter struct method PreHandle (line 16) | func (this *PingRouter) PreHandle(request ziface.IRequest) { method Handle (line 25) | func (this *PingRouter) Handle(request ziface.IRequest) { method PostHandle (line 34) | func (this *PingRouter) PostHandle(request ziface.IRequest) { function main (line 42) | func main() { FILE: examples/zinx_version_ex/ZinxV0.5Test/client/client.go function main (line 14) | func main() { FILE: examples/zinx_version_ex/ZinxV0.5Test/server/server.go type PingRouter (line 11) | type PingRouter struct method Handle (line 16) | func (this *PingRouter) Handle(request ziface.IRequest) { function main (line 34) | func main() { FILE: examples/zinx_version_ex/ZinxV0.6Test-V0.7Test/client0/Client0.go function main (line 14) | func main() { FILE: examples/zinx_version_ex/ZinxV0.6Test-V0.7Test/client1/Client1.go function main (line 14) | func main() { FILE: examples/zinx_version_ex/ZinxV0.6Test-V0.7Test/server/Server.go type PingRouter (line 10) | type PingRouter struct method Handle (line 15) | func (this *PingRouter) Handle(request ziface.IRequest) { type HelloZinxRouter (line 26) | type HelloZinxRouter struct method Handle (line 31) | func (this *HelloZinxRouter) Handle(request ziface.IRequest) { function main (line 42) | func main() { FILE: examples/zinx_version_ex/ZinxV0.8Test/client0/Client0.go function main (line 14) | func main() { FILE: examples/zinx_version_ex/ZinxV0.8Test/client1/Client1.go function main (line 14) | func main() { FILE: examples/zinx_version_ex/ZinxV0.8Test/server/Server.go type PingRouter (line 10) | type PingRouter struct method Handle (line 15) | func (this *PingRouter) Handle(request ziface.IRequest) { type HelloZinxRouter (line 26) | type HelloZinxRouter struct method Handle (line 31) | func (this *HelloZinxRouter) Handle(request ziface.IRequest) { function main (line 42) | func main() { FILE: examples/zinx_version_ex/ZinxV0.9Test/client0/Client0.go function main (line 14) | func main() { FILE: examples/zinx_version_ex/ZinxV0.9Test/client1/Client1.go function main (line 14) | func main() { FILE: examples/zinx_version_ex/ZinxV0.9Test/server/Server.go type PingRouter (line 10) | type PingRouter struct method Handle (line 15) | func (this *PingRouter) Handle(request ziface.IRequest) { type HelloZinxRouter (line 26) | type HelloZinxRouter struct method Handle (line 31) | func (this *HelloZinxRouter) Handle(request ziface.IRequest) { function DoConnectionBegin (line 43) | func DoConnectionBegin(conn ziface.IConnection) { function DoConnectionLost (line 52) | func DoConnectionLost(conn ziface.IConnection) { function main (line 56) | func main() { FILE: examples/zinx_version_ex/datapackDemo/client/client.go function main (line 9) | func main() { FILE: examples/zinx_version_ex/datapackDemo/server/server.go function main (line 11) | func main() { FILE: examples/zinx_version_ex/protoDemo/main.go function main (line 10) | func main() { FILE: examples/zinx_version_ex/protoDemo/pb/Person.pb.go constant _ (line 21) | _ = proto.ProtoPackageIsVersion3 type PhoneType (line 24) | type PhoneType method String (line 44) | func (x PhoneType) String() string { method EnumDescriptor (line 48) | func (PhoneType) EnumDescriptor() ([]byte, []int) { constant PhoneType_MOBILE (line 27) | PhoneType_MOBILE PhoneType = 0 constant PhoneType_HOME (line 28) | PhoneType_HOME PhoneType = 1 constant PhoneType_WORK (line 29) | PhoneType_WORK PhoneType = 2 type Person (line 53) | type Person struct method Reset (line 63) | func (m *Person) Reset() { *m = Person{} } method String (line 64) | func (m *Person) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 65) | func (*Person) ProtoMessage() {} method Descriptor (line 66) | func (*Person) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 70) | func (m *Person) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 73) | func (m *Person) XXX_Marshal(b []byte, deterministic bool) ([]byte, er... method XXX_Merge (line 76) | func (m *Person) XXX_Merge(src proto.Message) { method XXX_Size (line 79) | func (m *Person) XXX_Size() int { method XXX_DiscardUnknown (line 82) | func (m *Person) XXX_DiscardUnknown() { method GetName (line 88) | func (m *Person) GetName() string { method GetAge (line 95) | func (m *Person) GetAge() int32 { method GetEmails (line 102) | func (m *Person) GetEmails() []string { method GetPhones (line 109) | func (m *Person) GetPhones() []*PhoneNumber { type PhoneNumber (line 117) | type PhoneNumber struct method Reset (line 125) | func (m *PhoneNumber) Reset() { *m = PhoneNumber{} } method String (line 126) | func (m *PhoneNumber) String() string { return proto.CompactTextString... method ProtoMessage (line 127) | func (*PhoneNumber) ProtoMessage() {} method Descriptor (line 128) | func (*PhoneNumber) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 132) | func (m *PhoneNumber) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 135) | func (m *PhoneNumber) XXX_Marshal(b []byte, deterministic bool) ([]byt... method XXX_Merge (line 138) | func (m *PhoneNumber) XXX_Merge(src proto.Message) { method XXX_Size (line 141) | func (m *PhoneNumber) XXX_Size() int { method XXX_DiscardUnknown (line 144) | func (m *PhoneNumber) XXX_DiscardUnknown() { method GetNumber (line 150) | func (m *PhoneNumber) GetNumber() string { method GetType (line 157) | func (m *PhoneNumber) GetType() PhoneType { function init (line 164) | func init() { function init (line 170) | func init() { proto.RegisterFile("Person.proto", fileDescriptor_841ab639... FILE: examples/zinx_websocket/client/client.go type PositionClientRouter (line 14) | type PositionClientRouter struct method Handle (line 18) | func (this *PositionClientRouter) Handle(request ziface.IRequest) { function business (line 23) | func business(conn ziface.IConnection) { function DoClientConnectedBegin (line 36) | func DoClientConnectedBegin(conn ziface.IConnection) { function wait (line 44) | func wait() { function main (line 51) | func main() { FILE: examples/zinx_websocket/minicode/app.js method onLaunch (line 3) | onLaunch() { method encodeTLV (line 27) | encodeTLV(type, value) { method decodeTLV (line 38) | decodeTLV(buffer) { FILE: examples/zinx_websocket/minicode/index/index.js method onLoad (line 7) | onLoad() { FILE: examples/zinx_websocket/server/server.go function main (line 9) | func main() { FILE: logo/zinxlogo.go function PrintLogo (line 22) | func PrintLogo() { FILE: zasync_op/async_op.go function Process (line 48) | func Process(opId int, asyncOp func()) { function getCurWorker (line 61) | func getCurWorker(opId int) *AsyncWorker { FILE: zasync_op/async_op_result.go type AsyncOpResult (line 16) | type AsyncOpResult struct method GetReturnedObj (line 32) | func (aor *AsyncOpResult) GetReturnedObj() interface{} { method SetReturnedObj (line 37) | func (aor *AsyncOpResult) SetReturnedObj(val interface{}) { method OnComplete (line 50) | func (aor *AsyncOpResult) OnComplete(val func()) { method doComplete (line 66) | func (aor *AsyncOpResult) doComplete() { function NewAsyncOpResult (line 85) | func NewAsyncOpResult(conn ziface.IConnection) *AsyncOpResult { FILE: zasync_op/async_worker.go type AsyncWorker (line 11) | type AsyncWorker struct method process (line 15) | func (aw *AsyncWorker) process(asyncOp func()) { method loopExecTask (line 38) | func (aw *AsyncWorker) loopExecTask() { FILE: zconf/env.go constant EnvConfigFilePathKey (line 17) | EnvConfigFilePathKey = "ZINX_CONFIG_FILE_PATH" constant EnvDefaultConfigFilePath (line 18) | EnvDefaultConfigFilePath = "/conf/zinx.json" type zEnv (line 23) | type zEnv struct function init (line 27) | func init() { function GetConfigFilePath (line 44) | func GetConfigFilePath() string { FILE: zconf/userconf.go function UserConfToGlobal (line 9) | func UserConfToGlobal(config *Config) { FILE: zconf/zconf.go constant ServerModeTcp (line 20) | ServerModeTcp = "tcp" constant ServerModeWebsocket (line 21) | ServerModeWebsocket = "websocket" constant ServerModeKcp (line 22) | ServerModeKcp = "kcp" constant WorkerModeHash (line 26) | WorkerModeHash = "Hash" constant WorkerModeBind (line 27) | WorkerModeBind = "Bind" constant WorkerModeDynamicBind (line 35) | WorkerModeDynamicBind = "DynamicBind" type Config (line 44) | type Config struct method Reload (line 142) | func (g *Config) Reload() { method Show (line 169) | func (g *Config) Show() { method HeartbeatMaxDuration (line 183) | func (g *Config) HeartbeatMaxDuration() time.Duration { method InitLogConfig (line 187) | func (g *Config) InitLogConfig() { function PathExists (line 126) | func PathExists(path string) (bool, error) { function init (line 206) | func init() { FILE: zdecoder/crc.go function GetCrC (line 61) | func GetCrC(buff []byte) []byte { function IsComplete (line 78) | func IsComplete(src []byte, dst []byte) bool { function CheckCRC (line 89) | func CheckCRC(src []byte, crc []byte) bool { FILE: zdecoder/htlvcrcdecoder.go constant HEADER_SIZE (line 53) | HEADER_SIZE = 5 type HtlvCrcDecoder (line 55) | type HtlvCrcDecoder struct method GetLengthField (line 68) | func (hcd *HtlvCrcDecoder) GetLengthField() *ziface.LengthField { method decode (line 92) | func (hcd *HtlvCrcDecoder) decode(data []byte) *HtlvCrcDecoder { method Intercept (line 118) | func (hcd *HtlvCrcDecoder) Intercept(chain ziface.IChain) ziface.IcResp { function NewHTLVCRCDecoder (line 64) | func NewHTLVCRCDecoder() ziface.IDecoder { FILE: zdecoder/ltvdecoder_little.go constant LTV_HEADER_SIZE (line 59) | LTV_HEADER_SIZE = 8 type LTV_Little_Decoder (line 61) | type LTV_Little_Decoder struct method GetLengthField (line 71) | func (ltv *LTV_Little_Decoder) GetLengthField() *ziface.LengthField { method decode (line 98) | func (ltv *LTV_Little_Decoder) decode(data []byte) *LTV_Little_Decoder { method Intercept (line 114) | func (ltv *LTV_Little_Decoder) Intercept(chain ziface.IChain) ziface.I... function NewLTV_Little_Decoder (line 67) | func NewLTV_Little_Decoder() ziface.IDecoder { FILE: zdecoder/tlvdecoder.go constant TLV_HEADER_SIZE (line 60) | TLV_HEADER_SIZE = 8 type TLVDecoder (line 62) | type TLVDecoder struct method GetLengthField (line 72) | func (tlv *TLVDecoder) GetLengthField() *ziface.LengthField { method decode (line 97) | func (tlv *TLVDecoder) decode(data []byte) *TLVDecoder { method Intercept (line 113) | func (tlv *TLVDecoder) Intercept(chain ziface.IChain) ziface.IcResp { function NewTLVDecoder (line 68) | func NewTLVDecoder() ziface.IDecoder { FILE: ziface/iclient.go type IClient (line 13) | type IClient interface FILE: ziface/iconnection.go type IConnection (line 14) | type IConnection interface FILE: ziface/iconnmanager.go type IConnManager (line 7) | type IConnManager interface FILE: ziface/idatapack.go type IDataPack (line 9) | type IDataPack interface constant ZinxDataPack (line 17) | ZinxDataPack string = "zinx_pack_tlv_big_endian" constant ZinxDataPackOld (line 18) | ZinxDataPackOld string = "zinx_pack_ltv_little_endian" constant ZinxMessage (line 26) | ZinxMessage string = "zinx_message" FILE: ziface/idecoder.go type IDecoder (line 3) | type IDecoder interface FILE: ziface/iheartbeat.go type IHeartbeatChecker (line 3) | type IHeartbeatChecker interface type HeartBeatMsgFunc (line 21) | type HeartBeatMsgFunc type HeartBeatFunc (line 25) | type HeartBeatFunc type OnRemoteNotAlive (line 29) | type OnRemoteNotAlive type HeartBeatOption (line 31) | type HeartBeatOption struct constant HeartBeatDefaultMsgID (line 40) | HeartBeatDefaultMsgID uint32 = 99999 FILE: ziface/iinterceptor.go type IcReq (line 11) | type IcReq interface type IcResp (line 15) | type IcResp interface type IInterceptor (line 19) | type IInterceptor interface type IChain (line 27) | type IChain interface FILE: ziface/ilengthfield.go type IFrameDecoder (line 5) | type IFrameDecoder interface type LengthField (line 11) | type LengthField struct FILE: ziface/ilogger.go type ILogger (line 5) | type ILogger interface FILE: ziface/imessage.go type IMessage (line 7) | type IMessage interface FILE: ziface/imsghandler.go type IMsgHandle (line 7) | type IMsgHandle interface FILE: ziface/inotify.go type Inotify (line 3) | type Inotify interface FILE: ziface/irequest.go type HandleStep (line 6) | type HandleStep type IFuncRequest (line 9) | type IFuncRequest interface type IRequest (line 16) | type IRequest interface type BaseRequest (line 60) | type BaseRequest struct method GetConnection (line 62) | func (br *BaseRequest) GetConnection() IConnection { return nil } method GetData (line 63) | func (br *BaseRequest) GetData() []byte { return nil } method GetMsgID (line 64) | func (br *BaseRequest) GetMsgID() uint32 { return 0 } method GetMessage (line 65) | func (br *BaseRequest) GetMessage() IMessage { return nil } method GetResponse (line 66) | func (br *BaseRequest) GetResponse() IcResp { return nil } method SetResponse (line 67) | func (br *BaseRequest) SetResponse(resp IcResp) {} method BindRouter (line 68) | func (br *BaseRequest) BindRouter(router IRouter) {} method Call (line 69) | func (br *BaseRequest) Call() {} method Abort (line 70) | func (br *BaseRequest) Abort() {} method Goto (line 71) | func (br *BaseRequest) Goto(HandleStep) {} method BindRouterSlices (line 72) | func (br *BaseRequest) BindRouterSlices([]RouterHandler) {} method RouterSlicesNext (line 73) | func (br *BaseRequest) RouterSlicesNext() {} method Copy (line 74) | func (br *BaseRequest) Copy() IRequest { return nil } method Set (line 76) | func (br *BaseRequest) Set(key string, value interface{}) {} method Get (line 78) | func (br *BaseRequest) Get(key string) (value interface{}, exists bool... FILE: ziface/irouter.go type IRouter (line 12) | type IRouter interface type RouterHandler (line 23) | type RouterHandler type IRouterSlices (line 24) | type IRouterSlices interface type IGroupRouterSlices (line 38) | type IGroupRouterSlices interface FILE: ziface/iserver.go type IServer (line 12) | type IServer interface FILE: ziface/options.go type MsgSendOptionObj (line 5) | type MsgSendOptionObj struct type MsgSendOption (line 9) | type MsgSendOption function WithSendMsgTimeout (line 11) | func WithSendMsgTimeout(timeout time.Duration) MsgSendOption { FILE: zinterceptor/chain.go type Chain (line 10) | type Chain struct method Request (line 24) | func (c *Chain) Request() ziface.IcReq { method Proceed (line 28) | func (c *Chain) Proceed(request ziface.IcReq) ziface.IcResp { method GetIMessage (line 39) | func (c *Chain) GetIMessage() ziface.IMessage { method ProceedWithIMessage (line 56) | func (c *Chain) ProceedWithIMessage(iMessage ziface.IMessage, response... method ShouldIRequest (line 79) | func (c *Chain) ShouldIRequest(icReq ziface.IcReq) ziface.IRequest { function NewChain (line 16) | func NewChain(list []ziface.IInterceptor, pos int, req ziface.IcReq) zif... FILE: zinterceptor/framedecoder.go type FrameDecoder (line 307) | type FrameDecoder struct method fail (line 351) | func (d *FrameDecoder) fail(frameLength int64) { method discardingTooLongFrameFunc (line 362) | func (d *FrameDecoder) discardingTooLongFrameFunc(buffer *bytes.Buffer) { method getUnadjustedFrameLength (line 383) | func (d *FrameDecoder) getUnadjustedFrameLength(buf *bytes.Buffer, off... method failOnNegativeLengthField (line 427) | func (d *FrameDecoder) failOnNegativeLengthField(in *bytes.Buffer, fra... method failIfNecessary (line 432) | func (d *FrameDecoder) failIfNecessary(firstDetectionOfTooLongFrame bo... method exceededFrameLength (line 459) | func (d *FrameDecoder) exceededFrameLength(in *bytes.Buffer, frameLeng... method failOnFrameLengthLessThanInitialBytesToStrip (line 489) | func (d *FrameDecoder) failOnFrameLengthLessThanInitialBytesToStrip(in... method decode (line 494) | func (d *FrameDecoder) decode(buf []byte) []byte { method Decode (line 578) | func (d *FrameDecoder) Decode(buff []byte) [][]byte { function NewFrameDecoder (line 318) | func NewFrameDecoder(lf ziface.LengthField) ziface.IFrameDecoder { function NewFrameDecoderByParams (line 340) | func NewFrameDecoderByParams(maxFrameLength uint64, lengthFieldOffset, l... FILE: zinx_app_demo/mmo_game/api/move.go type MoveApi (line 15) | type MoveApi struct method Handle (line 19) | func (*MoveApi) Handle(request ziface.IRequest) { FILE: zinx_app_demo/mmo_game/api/world_chat.go type WorldChatApi (line 15) | type WorldChatApi struct method Handle (line 19) | func (*WorldChatApi) Handle(request ziface.IRequest) { FILE: zinx_app_demo/mmo_game/client_AI_robot.go type Message (line 21) | type Message struct type TcpClient (line 27) | type TcpClient struct method Unpack (line 37) | func (this *TcpClient) Unpack(headdata []byte) (head *Message, err err... method Pack (line 60) | func (this *TcpClient) Pack(msgID uint32, dataBytes []byte) (out []byt... method SendMsg (line 81) | func (this *TcpClient) SendMsg(msgID uint32, data proto.Message) { method AIRobotAction (line 100) | func (this *TcpClient) AIRobotAction() { method DoMsg (line 163) | func (this *TcpClient) DoMsg(msg *Message) { method Start (line 201) | func (this *TcpClient) Start() { function NewTcpClient (line 247) | func NewTcpClient(ip string, port int) *TcpClient { function main (line 270) | func main() { FILE: zinx_app_demo/mmo_game/core/aoi.go constant AOI_MIN_X (line 6) | AOI_MIN_X int = 85 constant AOI_MAX_X (line 7) | AOI_MAX_X int = 410 constant AOI_CNTS_X (line 8) | AOI_CNTS_X int = 10 constant AOI_MIN_Y (line 9) | AOI_MIN_Y int = 75 constant AOI_MAX_Y (line 10) | AOI_MAX_Y int = 400 constant AOI_CNTS_Y (line 11) | AOI_CNTS_Y int = 20 type AOIManager (line 15) | type AOIManager struct method grIDWIDth (line 62) | func (m *AOIManager) grIDWIDth() int { method grIDLength (line 68) | func (m *AOIManager) grIDLength() int { method String (line 74) | func (m *AOIManager) String() string { method GetSurroundGrIDsByGID (line 86) | func (m *AOIManager) GetSurroundGrIDsByGID(gID int) (grIDs []*GrID) { method GetGIDByPos (line 136) | func (m *AOIManager) GetGIDByPos(x, y float32) int { method GetPIDsByPos (line 145) | func (m *AOIManager) GetPIDsByPos(x, y float32) (playerIDs []int) { method GetPIDsByGID (line 163) | func (m *AOIManager) GetPIDsByGID(gID int) (playerIDs []int) { method RemovePIDFromGrID (line 170) | func (m *AOIManager) RemovePIDFromGrID(pID, gID int) { method AddPIDToGrID (line 176) | func (m *AOIManager) AddPIDToGrID(pID, gID int) { method AddToGrIDByPos (line 182) | func (m *AOIManager) AddToGrIDByPos(pID int, x, y float32) { method RemoveFromGrIDByPos (line 190) | func (m *AOIManager) RemoveFromGrIDByPos(pID int, x, y float32) { function NewAOIManager (line 26) | func NewAOIManager(minX, maxX, cntsX, minY, maxY, cntsY int) *AOIManager { FILE: zinx_app_demo/mmo_game/core/aoi_test.go function TestNewAOIManager (line 8) | func TestNewAOIManager(t *testing.T) { function TestAOIManagerSuroundGrIDsByGID (line 13) | func TestAOIManagerSuroundGrIDsByGID(t *testing.T) { FILE: zinx_app_demo/mmo_game/core/grid.go type GrID (line 9) | type GrID struct method Add (line 32) | func (g *GrID) Add(playerID int) { method Remove (line 40) | func (g *GrID) Remove(playerID int) { method GetPlyerIDs (line 48) | func (g *GrID) GetPlyerIDs() (playerIDs []int) { method String (line 60) | func (g *GrID) String() string { function NewGrID (line 20) | func NewGrID(gID, minX, maxX, minY, maxY int) *GrID { FILE: zinx_app_demo/mmo_game/core/player.go type Player (line 15) | type Player struct method SyncPID (line 49) | func (p *Player) SyncPID() { method BroadCastStartPosition (line 63) | func (p *Player) BroadCastStartPosition() { method SyncSurrounding (line 87) | func (p *Player) SyncSurrounding() { method Talk (line 154) | func (p *Player) Talk(content string) { method UpdatePos (line 177) | func (p *Player) UpdatePos(x float32, y float32, z float32, v float32) { method OnExchangeAoiGrID (line 235) | func (p *Player) OnExchangeAoiGrID(oldGID, newGID int) error { method GetSurroundingPlayers (line 351) | func (p *Player) GetSurroundingPlayers() []*Player { method LostConnection (line 368) | func (p *Player) LostConnection() { method SendMsg (line 394) | func (p *Player) SendMsg(msgID uint32, data proto.Message) { function NewPlayer (line 29) | func NewPlayer(conn ziface.IConnection) *Player { FILE: zinx_app_demo/mmo_game/core/world_manager.go type WorldManager (line 8) | type WorldManager struct method AddPlayer (line 29) | func (wm *WorldManager) AddPlayer(player *Player) { method RemovePlayerByPID (line 43) | func (wm *WorldManager) RemovePlayerByPID(pID int32) { method GetPlayerByPID (line 51) | func (wm *WorldManager) GetPlayerByPID(pID int32) *Player { method GetAllPlayers (line 60) | func (wm *WorldManager) GetAllPlayers() []*Player { method GetPlayersByGID (line 79) | func (wm *WorldManager) GetPlayersByGID(gID int) []*Player { function init (line 20) | func init() { FILE: zinx_app_demo/mmo_game/pb/msg.pb.go constant _ (line 21) | _ = proto.ProtoPackageIsVersion3 type SyncPID (line 25) | type SyncPID struct method Reset (line 32) | func (m *SyncPID) Reset() { *m = SyncPID{} } method String (line 33) | func (m *SyncPID) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 34) | func (*SyncPID) ProtoMessage() {} method Descriptor (line 35) | func (*SyncPID) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 39) | func (m *SyncPID) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 42) | func (m *SyncPID) XXX_Marshal(b []byte, deterministic bool) ([]byte, e... method XXX_Merge (line 45) | func (m *SyncPID) XXX_Merge(src proto.Message) { method XXX_Size (line 48) | func (m *SyncPID) XXX_Size() int { method XXX_DiscardUnknown (line 51) | func (m *SyncPID) XXX_DiscardUnknown() { method GetPID (line 57) | func (m *SyncPID) GetPID() int32 { type Position (line 65) | type Position struct method Reset (line 75) | func (m *Position) Reset() { *m = Position{} } method String (line 76) | func (m *Position) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 77) | func (*Position) ProtoMessage() {} method Descriptor (line 78) | func (*Position) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 82) | func (m *Position) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 85) | func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, ... method XXX_Merge (line 88) | func (m *Position) XXX_Merge(src proto.Message) { method XXX_Size (line 91) | func (m *Position) XXX_Size() int { method XXX_DiscardUnknown (line 94) | func (m *Position) XXX_DiscardUnknown() { method GetX (line 100) | func (m *Position) GetX() float32 { method GetY (line 107) | func (m *Position) GetY() float32 { method GetZ (line 114) | func (m *Position) GetZ() float32 { method GetV (line 121) | func (m *Position) GetV() float32 { type BroadCast (line 130) | type BroadCast struct method Reset (line 145) | func (m *BroadCast) Reset() { *m = BroadCast{} } method String (line 146) | func (m *BroadCast) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 147) | func (*BroadCast) ProtoMessage() {} method Descriptor (line 148) | func (*BroadCast) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 152) | func (m *BroadCast) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 155) | func (m *BroadCast) XXX_Marshal(b []byte, deterministic bool) ([]byte,... method XXX_Merge (line 158) | func (m *BroadCast) XXX_Merge(src proto.Message) { method XXX_Size (line 161) | func (m *BroadCast) XXX_Size() int { method XXX_DiscardUnknown (line 164) | func (m *BroadCast) XXX_DiscardUnknown() { method GetPID (line 170) | func (m *BroadCast) GetPID() int32 { method GetTp (line 177) | func (m *BroadCast) GetTp() int32 { method GetData (line 206) | func (m *BroadCast) GetData() isBroadCast_Data { method GetContent (line 213) | func (m *BroadCast) GetContent() string { method GetP (line 220) | func (m *BroadCast) GetP() *Position { method GetActionData (line 227) | func (m *BroadCast) GetActionData() int32 { method XXX_OneofWrappers (line 235) | func (*BroadCast) XXX_OneofWrappers() []interface{} { type isBroadCast_Data (line 184) | type isBroadCast_Data interface type BroadCast_Content (line 188) | type BroadCast_Content struct method isBroadCast_Data (line 200) | func (*BroadCast_Content) isBroadCast_Data() {} type BroadCast_P (line 192) | type BroadCast_P struct method isBroadCast_Data (line 202) | func (*BroadCast_P) isBroadCast_Data() {} type BroadCast_ActionData (line 196) | type BroadCast_ActionData struct method isBroadCast_Data (line 204) | func (*BroadCast_ActionData) isBroadCast_Data() {} type Talk (line 245) | type Talk struct method Reset (line 252) | func (m *Talk) Reset() { *m = Talk{} } method String (line 253) | func (m *Talk) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 254) | func (*Talk) ProtoMessage() {} method Descriptor (line 255) | func (*Talk) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 259) | func (m *Talk) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 262) | func (m *Talk) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro... method XXX_Merge (line 265) | func (m *Talk) XXX_Merge(src proto.Message) { method XXX_Size (line 268) | func (m *Talk) XXX_Size() int { method XXX_DiscardUnknown (line 271) | func (m *Talk) XXX_DiscardUnknown() { method GetContent (line 277) | func (m *Talk) GetContent() string { type Player (line 285) | type Player struct method Reset (line 293) | func (m *Player) Reset() { *m = Player{} } method String (line 294) | func (m *Player) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 295) | func (*Player) ProtoMessage() {} method Descriptor (line 296) | func (*Player) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 300) | func (m *Player) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 303) | func (m *Player) XXX_Marshal(b []byte, deterministic bool) ([]byte, er... method XXX_Merge (line 306) | func (m *Player) XXX_Merge(src proto.Message) { method XXX_Size (line 309) | func (m *Player) XXX_Size() int { method XXX_DiscardUnknown (line 312) | func (m *Player) XXX_DiscardUnknown() { method GetPID (line 318) | func (m *Player) GetPID() int32 { method GetP (line 325) | func (m *Player) GetP() *Position { type SyncPlayers (line 334) | type SyncPlayers struct method Reset (line 341) | func (m *SyncPlayers) Reset() { *m = SyncPlayers{} } method String (line 342) | func (m *SyncPlayers) String() string { return proto.CompactTextString... method ProtoMessage (line 343) | func (*SyncPlayers) ProtoMessage() {} method Descriptor (line 344) | func (*SyncPlayers) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 348) | func (m *SyncPlayers) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 351) | func (m *SyncPlayers) XXX_Marshal(b []byte, deterministic bool) ([]byt... method XXX_Merge (line 354) | func (m *SyncPlayers) XXX_Merge(src proto.Message) { method XXX_Size (line 357) | func (m *SyncPlayers) XXX_Size() int { method XXX_DiscardUnknown (line 360) | func (m *SyncPlayers) XXX_DiscardUnknown() { method GetPs (line 366) | func (m *SyncPlayers) GetPs() []*Player { function init (line 373) | func init() { function init (line 382) | func init() { proto.RegisterFile("msg.proto", fileDescriptor_c06e4cca6c2... FILE: zinx_app_demo/mmo_game/server.go function OnConnectionAdd (line 16) | func OnConnectionAdd(conn ziface.IConnection) { function OnConnectionLost (line 47) | func OnConnectionLost(conn ziface.IConnection) { function main (line 70) | func main() { FILE: zlog/default.go type zinxDefaultLog (line 12) | type zinxDefaultLog struct method InfoF (line 14) | func (log *zinxDefaultLog) InfoF(format string, v ...interface{}) { method ErrorF (line 18) | func (log *zinxDefaultLog) ErrorF(format string, v ...interface{}) { method DebugF (line 22) | func (log *zinxDefaultLog) DebugF(format string, v ...interface{}) { method InfoFX (line 26) | func (log *zinxDefaultLog) InfoFX(ctx context.Context, format string, ... method ErrorFX (line 31) | func (log *zinxDefaultLog) ErrorFX(ctx context.Context, format string,... method DebugFX (line 36) | func (log *zinxDefaultLog) DebugFX(ctx context.Context, format string,... function SetLogger (line 41) | func SetLogger(newlog ziface.ILogger) { function Ins (line 45) | func Ins() ziface.ILogger { FILE: zlog/logger_core.go constant LOG_MAX_BUF (line 31) | LOG_MAX_BUF = 1024 * 1024 constant BitDate (line 37) | BitDate = 1 << iota constant BitTime (line 38) | BitTime constant BitMicroSeconds (line 39) | BitMicroSeconds constant BitLongFile (line 40) | BitLongFile constant BitShortFile (line 41) | BitShortFile constant BitLevel (line 42) | BitLevel constant BitStdFlag (line 43) | BitStdFlag = BitDate | BitTime constant BitDefault (line 44) | BitDefault = BitLevel | BitShortFile | BitStdFlag constant LogDebug (line 49) | LogDebug = iota constant LogInfo (line 50) | LogInfo constant LogWarn (line 51) | LogWarn constant LogError (line 52) | LogError constant LogPanic (line 53) | LogPanic constant LogFatal (line 54) | LogFatal type ZinxLoggerCore (line 67) | type ZinxLoggerCore struct method SetLogHook (line 119) | func (log *ZinxLoggerCore) SetLogHook(f func([]byte)) { method formatHeader (line 131) | func (log *ZinxLoggerCore) formatHeader(t time.Time, file string, line... method OutPut (line 197) | func (log *ZinxLoggerCore) OutPut(level int, s string) error { method verifyLogIsolation (line 242) | func (log *ZinxLoggerCore) verifyLogIsolation(logLevel int) bool { method Debugf (line 246) | func (log *ZinxLoggerCore) Debugf(format string, v ...interface{}) { method Debug (line 253) | func (log *ZinxLoggerCore) Debug(v ...interface{}) { method Infof (line 260) | func (log *ZinxLoggerCore) Infof(format string, v ...interface{}) { method Info (line 267) | func (log *ZinxLoggerCore) Info(v ...interface{}) { method Warnf (line 274) | func (log *ZinxLoggerCore) Warnf(format string, v ...interface{}) { method Warn (line 281) | func (log *ZinxLoggerCore) Warn(v ...interface{}) { method Errorf (line 288) | func (log *ZinxLoggerCore) Errorf(format string, v ...interface{}) { method Error (line 295) | func (log *ZinxLoggerCore) Error(v ...interface{}) { method Fatalf (line 302) | func (log *ZinxLoggerCore) Fatalf(format string, v ...interface{}) { method Fatal (line 310) | func (log *ZinxLoggerCore) Fatal(v ...interface{}) { method Panicf (line 318) | func (log *ZinxLoggerCore) Panicf(format string, v ...interface{}) { method Panic (line 327) | func (log *ZinxLoggerCore) Panic(v ...interface{}) { method Stack (line 336) | func (log *ZinxLoggerCore) Stack(v ...interface{}) { method Flags (line 348) | func (log *ZinxLoggerCore) Flags() int { method ResetFlags (line 356) | func (log *ZinxLoggerCore) ResetFlags(flag int) { method AddFlag (line 364) | func (log *ZinxLoggerCore) AddFlag(flag int) { method SetPrefix (line 372) | func (log *ZinxLoggerCore) SetPrefix(prefix string) { method SetLogFile (line 380) | func (log *ZinxLoggerCore) SetLogFile(fileDir string, fileName string) { method SetMaxAge (line 388) | func (log *ZinxLoggerCore) SetMaxAge(ma int) { method SetMaxSize (line 398) | func (log *ZinxLoggerCore) SetMaxSize(ms int64) { method SetCons (line 408) | func (log *ZinxLoggerCore) SetCons(b bool) { method closeFile (line 419) | func (log *ZinxLoggerCore) closeFile() { method SetLogLevel (line 425) | func (log *ZinxLoggerCore) SetLogLevel(logLevel int) { function NewZinxLog (line 102) | func NewZinxLog(prefix string, flag int) *ZinxLoggerCore { function CleanZinxLog (line 115) | func CleanZinxLog(log *ZinxLoggerCore) { function itoa (line 433) | func itoa(buf *bytes.Buffer, i int, wID int) { FILE: zlog/stdzlog.go function Flags (line 28) | func Flags() int { function ResetFlags (line 33) | func ResetFlags(flag int) { function AddFlag (line 38) | func AddFlag(flag int) { function SetPrefix (line 43) | func SetPrefix(prefix string) { function SetLogFile (line 48) | func SetLogFile(fileDir string, fileName string) { function SetMaxAge (line 53) | func SetMaxAge(ma int) { function SetMaxSize (line 58) | func SetMaxSize(ms int64) { function SetCons (line 63) | func SetCons(b bool) { function SetLogLevel (line 68) | func SetLogLevel(logLevel int) { function Debugf (line 72) | func Debugf(format string, v ...interface{}) { function Debug (line 76) | func Debug(v ...interface{}) { function Infof (line 80) | func Infof(format string, v ...interface{}) { function Info (line 84) | func Info(v ...interface{}) { function Warnf (line 88) | func Warnf(format string, v ...interface{}) { function Warn (line 92) | func Warn(v ...interface{}) { function Errorf (line 96) | func Errorf(format string, v ...interface{}) { function Error (line 100) | func Error(v ...interface{}) { function Fatalf (line 104) | func Fatalf(format string, v ...interface{}) { function Fatal (line 108) | func Fatal(v ...interface{}) { function Panicf (line 112) | func Panicf(format string, v ...interface{}) { function Panic (line 116) | func Panic(v ...interface{}) { function Stack (line 120) | func Stack(v ...interface{}) { function init (line 124) | func init() { FILE: zlog/zlog_test.go function TestStdZLog (line 9) | func TestStdZLog(t *testing.T) { function TestZLogger (line 63) | func TestZLogger(t *testing.T) { FILE: znet/acceptdelay.go constant maxDelay (line 8) | maxDelay = 1 * time.Second function init (line 13) | func init() { type acceptDelay (line 17) | type acceptDelay struct method Delay (line 21) | func (d *acceptDelay) Delay() { method Reset (line 26) | func (d *acceptDelay) Reset() { method Up (line 30) | func (d *acceptDelay) Up() { method do (line 41) | func (d *acceptDelay) do() { FILE: znet/acceptdelay_test.go function setup (line 12) | func setup() { function teardown (line 16) | func teardown() { function TestDelay (line 21) | func TestDelay(t *testing.T) { function TestMain (line 34) | func TestMain(m *testing.M) { FILE: znet/callbacks.go type callbackNode (line 5) | type callbackNode struct type callbacks (line 14) | type callbacks struct method Add (line 26) | func (t *callbacks) Add(handler, key any, callback func()) { method Remove (line 61) | func (t *callbacks) Remove(handler, key any) { method Invoke (line 91) | func (t *callbacks) Invoke() { method Len (line 100) | func (t *callbacks) Len() int { FILE: znet/callbacks_test.go function TestCallback (line 7) | func TestCallback(t *testing.T) { function TestCallbackInvokePanicPropagation (line 103) | func TestCallbackInvokePanicPropagation(t *testing.T) { FILE: znet/chainbuilder.go type chainBuilder (line 16) | type chainBuilder struct method Head (line 29) | func (ic *chainBuilder) Head(interceptor ziface.IInterceptor) { method Tail (line 34) | func (ic *chainBuilder) Tail(interceptor ziface.IInterceptor) { method AddInterceptor (line 39) | func (ic *chainBuilder) AddInterceptor(interceptor ziface.IInterceptor) { method Execute (line 44) | func (ic *chainBuilder) Execute(req ziface.IcReq) ziface.IcResp { function newChainBuilder (line 22) | func newChainBuilder() *chainBuilder { FILE: znet/client.go type Client (line 20) | type Client struct method notifyErr (line 123) | func (c *Client) notifyErr(err error) { method Restart (line 132) | func (c *Client) Restart() { method Start (line 228) | func (c *Client) Start() { method StartHeartBeat (line 241) | func (c *Client) StartHeartBeat(interval time.Duration) { method StartHeartBeatWithOption (line 257) | func (c *Client) StartHeartBeatWithOption(interval time.Duration, opti... method Stop (line 276) | func (c *Client) Stop() { method AddRouter (line 299) | func (c *Client) AddRouter(msgID uint32, router ziface.IRouter) { method Conn (line 303) | func (c *Client) Conn() ziface.IConnection { method setConn (line 309) | func (c *Client) setConn(con ziface.IConnection) { method SetOnConnStart (line 315) | func (c *Client) SetOnConnStart(hookFunc func(ziface.IConnection)) { method SetOnConnStop (line 319) | func (c *Client) SetOnConnStop(hookFunc func(ziface.IConnection)) { method GetOnConnStart (line 323) | func (c *Client) GetOnConnStart() func(ziface.IConnection) { method GetOnConnStop (line 327) | func (c *Client) GetOnConnStop() func(ziface.IConnection) { method GetPacket (line 331) | func (c *Client) GetPacket() ziface.IDataPack { method SetPacket (line 335) | func (c *Client) SetPacket(packet ziface.IDataPack) { method GetMsgHandler (line 339) | func (c *Client) GetMsgHandler() ziface.IMsgHandle { method AddInterceptor (line 343) | func (c *Client) AddInterceptor(interceptor ziface.IInterceptor) { method SetDecoder (line 347) | func (c *Client) SetDecoder(decoder ziface.IDecoder) { method GetLengthField (line 350) | func (c *Client) GetLengthField() *ziface.LengthField { method GetErrChan (line 357) | func (c *Client) GetErrChan() <-chan error { method SetName (line 361) | func (c *Client) SetName(name string) { method GetName (line 365) | func (c *Client) GetName() string { method SetUrl (line 369) | func (c *Client) SetUrl(url *url.URL) { method GetUrl (line 373) | func (c *Client) GetUrl() *url.URL { method SetWsHeader (line 377) | func (c *Client) SetWsHeader(header http.Header) { method GetWsHeader (line 381) | func (c *Client) GetWsHeader() http.Header { function NewClient (line 64) | func NewClient(ip string, port int, opts ...ClientOption) ziface.IClient { function NewWsClient (line 88) | func NewWsClient(ip string, port int, opts ...ClientOption) ziface.IClie... function NewTLSClient (line 113) | func NewTLSClient(ip string, port int, opts ...ClientOption) ziface.ICli... FILE: znet/connection.go type CallBackFunc (line 25) | type CallBackFunc type Connection (line 30) | type Connection struct method StartWriter (line 197) | func (c *Connection) StartWriter() { method StartReader (line 231) | func (c *Connection) StartReader() { method Start (line 296) | func (c *Connection) Start() { method Stop (line 333) | func (c *Connection) Stop() { method GetConnection (line 337) | func (c *Connection) GetConnection() net.Conn { method GetWsConn (line 341) | func (c *Connection) GetWsConn() *websocket.Conn { method GetTCPConnection (line 346) | func (c *Connection) GetTCPConnection() net.Conn { method GetConnID (line 350) | func (c *Connection) GetConnID() uint64 { method GetConnIdStr (line 354) | func (c *Connection) GetConnIdStr() string { method GetWorkerID (line 358) | func (c *Connection) GetWorkerID() uint32 { method RemoteAddr (line 362) | func (c *Connection) RemoteAddr() net.Addr { method LocalAddr (line 366) | func (c *Connection) LocalAddr() net.Addr { method Flush (line 370) | func (c *Connection) Flush() error { method Send (line 377) | func (c *Connection) Send(data []byte) error { method SendBuf (line 389) | func (c *Connection) SendBuf(data []byte) error { method SendToQueue (line 401) | func (c *Connection) SendToQueue(data []byte, opts ...ziface.MsgSendOp... method SendMsg (line 447) | func (c *Connection) SendMsg(msgID uint32, data []byte) error { method SendBuffMsg (line 468) | func (c *Connection) SendBuffMsg(msgID uint32, data []byte, opts ...zi... method SetProperty (line 478) | func (c *Connection) SetProperty(key string, value interface{}) { method GetProperty (line 488) | func (c *Connection) GetProperty(key string) (interface{}, error) { method RemoveProperty (line 499) | func (c *Connection) RemoveProperty(key string) { method Context (line 506) | func (c *Connection) Context() context.Context { method finalizer (line 510) | func (c *Connection) finalizer() { method callOnConnStart (line 541) | func (c *Connection) callOnConnStart() { method callOnConnStop (line 548) | func (c *Connection) callOnConnStop() { method IsAlive (line 555) | func (c *Connection) IsAlive() bool { method updateActivity (line 565) | func (c *Connection) updateActivity() { method SetHeartBeat (line 569) | func (c *Connection) SetHeartBeat(checker ziface.IHeartbeatChecker) { method LocalAddrString (line 573) | func (c *Connection) LocalAddrString() string { method RemoteAddrString (line 577) | func (c *Connection) RemoteAddrString() string { method GetName (line 581) | func (c *Connection) GetName() string { method GetMsgHandler (line 585) | func (c *Connection) GetMsgHandler() ziface.IMsgHandle { method isClosed (line 589) | func (c *Connection) isClosed() bool { method setStartWriterFlag (line 593) | func (c *Connection) setStartWriterFlag() bool { method AddCloseCallback (line 597) | func (s *Connection) AddCloseCallback(handler, key interface{}, f func... method RemoveCloseCallback (line 606) | func (s *Connection) RemoveCloseCallback(handler, key interface{}) { method InvokeCloseCallbacks (line 615) | func (s *Connection) InvokeCloseCallbacks() { function newServerConn (line 127) | func newServerConn(server ziface.IServer, conn net.Conn, connID uint64) ... function newClientConn (line 167) | func newClientConn(client ziface.IClient, conn net.Conn) ziface.IConnect... FILE: znet/connmanager.go type ConnManager (line 12) | type ConnManager struct method Add (line 22) | func (connMgr *ConnManager) Add(conn ziface.IConnection) { method Remove (line 29) | func (connMgr *ConnManager) Remove(conn ziface.IConnection) { method Get (line 36) | func (connMgr *ConnManager) Get(connID uint64) (ziface.IConnection, er... method Get2 (line 47) | func (connMgr *ConnManager) Get2(strConnId string) (ziface.IConnection... method Len (line 56) | func (connMgr *ConnManager) Len() int { method ClearConn (line 63) | func (connMgr *ConnManager) ClearConn() { method GetAllConnID (line 78) | func (connMgr *ConnManager) GetAllConnID() []uint64 { method GetAllConnIdStr (line 95) | func (connMgr *ConnManager) GetAllConnIdStr() []string { method Range (line 99) | func (connMgr *ConnManager) Range(cb func(uint64, ziface.IConnection, ... method Range2 (line 114) | func (connMgr *ConnManager) Range2(cb func(string, ziface.IConnection,... function newConnManager (line 16) | func newConnManager() *ConnManager { FILE: znet/defaultrouterfunc.go constant StackBegin (line 18) | StackBegin = 3 constant StackEnd (line 21) | StackEnd = 5 function RouterRecovery (line 32) | func RouterRecovery(request ziface.IRequest) { function RouterTime (line 51) | func RouterTime(request ziface.IRequest) { function getInfo (line 58) | func getInfo(ship int) (infoStr string) { FILE: znet/heartbeat.go type HeartbeatChecker (line 11) | type HeartbeatChecker struct method SetOnRemoteNotAlive (line 73) | func (h *HeartbeatChecker) SetOnRemoteNotAlive(f ziface.OnRemoteNotAli... method SetHeartbeatMsgFunc (line 79) | func (h *HeartbeatChecker) SetHeartbeatMsgFunc(f ziface.HeartBeatMsgFu... method SetHeartbeatFunc (line 85) | func (h *HeartbeatChecker) SetHeartbeatFunc(beatFunc ziface.HeartBeatF... method BindRouter (line 91) | func (h *HeartbeatChecker) BindRouter(msgID uint32, router ziface.IRou... method BindRouterSlices (line 98) | func (h *HeartbeatChecker) BindRouterSlices(msgID uint32, handlers ...... method start (line 105) | func (h *HeartbeatChecker) start() { method Start (line 118) | func (h *HeartbeatChecker) Start() { method Stop (line 122) | func (h *HeartbeatChecker) Stop() { method SendHeartBeatMsg (line 127) | func (h *HeartbeatChecker) SendHeartBeatMsg() error { method check (line 140) | func (h *HeartbeatChecker) check() (err error) { method BindConn (line 159) | func (h *HeartbeatChecker) BindConn(conn ziface.IConnection) { method Clone (line 166) | func (h *HeartbeatChecker) Clone() ziface.IHeartbeatChecker { method MsgID (line 185) | func (h *HeartbeatChecker) MsgID() uint32 { method Router (line 189) | func (h *HeartbeatChecker) Router() ziface.IRouter { method RouterSlices (line 193) | func (h *HeartbeatChecker) RouterSlices() []ziface.RouterHandler { type HeatBeatDefaultRouter (line 31) | type HeatBeatDefaultRouter struct method Handle (line 35) | func (r *HeatBeatDefaultRouter) Handle(req ziface.IRequest) { function HeatBeatDefaultHandle (line 40) | func HeatBeatDefaultHandle(req ziface.IRequest) { function makeDefaultMsg (line 45) | func makeDefaultMsg(conn ziface.IConnection) []byte { function notAliveDefaultFunc (line 50) | func notAliveDefaultFunc(conn ziface.IConnection) { function NewHeartbeatChecker (line 55) | func NewHeartbeatChecker(interval time.Duration) ziface.IHeartbeatChecker { FILE: znet/kcp_connection.go type KcpConnection (line 26) | type KcpConnection struct method StartWriter (line 189) | func (c *KcpConnection) StartWriter() { method StartReader (line 214) | func (c *KcpConnection) StartReader() { method Start (line 277) | func (c *KcpConnection) Start() { method Stop (line 314) | func (c *KcpConnection) Stop() { method GetConnection (line 318) | func (c *KcpConnection) GetConnection() net.Conn { method GetWsConn (line 322) | func (c *KcpConnection) GetWsConn() *websocket.Conn { method GetTCPConnection (line 327) | func (c *KcpConnection) GetTCPConnection() net.Conn { method GetConnID (line 331) | func (c *KcpConnection) GetConnID() uint64 { method GetConnIdStr (line 335) | func (c *KcpConnection) GetConnIdStr() string { method GetWorkerID (line 339) | func (c *KcpConnection) GetWorkerID() uint32 { method RemoteAddr (line 343) | func (c *KcpConnection) RemoteAddr() net.Addr { method LocalAddr (line 347) | func (c *KcpConnection) LocalAddr() net.Addr { method Send (line 351) | func (c *KcpConnection) Send(data []byte) error { method SendToQueue (line 367) | func (c *KcpConnection) SendToQueue(data []byte, opts ...ziface.MsgSen... method SendMsg (line 411) | func (c *KcpConnection) SendMsg(msgID uint32, data []byte) error { method SendBuffMsg (line 431) | func (c *KcpConnection) SendBuffMsg(msgID uint32, data []byte, opts ..... method SetProperty (line 470) | func (c *KcpConnection) SetProperty(key string, value interface{}) { method GetProperty (line 480) | func (c *KcpConnection) GetProperty(key string) (interface{}, error) { method RemoveProperty (line 491) | func (c *KcpConnection) RemoveProperty(key string) { method Context (line 498) | func (c *KcpConnection) Context() context.Context { method finalizer (line 502) | func (c *KcpConnection) finalizer() { method callOnConnStart (line 551) | func (c *KcpConnection) callOnConnStart() { method callOnConnStop (line 558) | func (c *KcpConnection) callOnConnStop() { method IsAlive (line 565) | func (c *KcpConnection) IsAlive() bool { method updateActivity (line 575) | func (c *KcpConnection) updateActivity() { method SetHeartBeat (line 579) | func (c *KcpConnection) SetHeartBeat(checker ziface.IHeartbeatChecker) { method LocalAddrString (line 583) | func (c *KcpConnection) LocalAddrString() string { method RemoteAddrString (line 587) | func (c *KcpConnection) RemoteAddrString() string { method GetName (line 591) | func (c *KcpConnection) GetName() string { method GetMsgHandler (line 595) | func (c *KcpConnection) GetMsgHandler() ziface.IMsgHandle { method isClosed (line 599) | func (c *KcpConnection) isClosed() bool { method setClose (line 603) | func (c *KcpConnection) setClose() bool { method AddCloseCallback (line 607) | func (s *KcpConnection) AddCloseCallback(handler, key interface{}, f f... method RemoveCloseCallback (line 616) | func (s *KcpConnection) RemoveCloseCallback(handler, key interface{}) { method InvokeCloseCallbacks (line 626) | func (s *KcpConnection) InvokeCloseCallbacks() { function newKcpServerConn (line 124) | func newKcpServerConn(server ziface.IServer, conn *kcp.UDPSession, connI... function newKcpClientConn (line 161) | func newKcpClientConn(client ziface.IClient, conn *kcp.UDPSession) zifac... FILE: znet/msghandler.go constant WorkerIDWithoutWorkerPool (line 18) | WorkerIDWithoutWorkerPool int = 0 type MsgHandle (line 23) | type MsgHandle struct method Intercept (line 255) | func (mh *MsgHandle) Intercept(chain ziface.IChain) ziface.IcResp { method SetHeadInterceptor (line 285) | func (mh *MsgHandle) SetHeadInterceptor(interceptor ziface.IIntercepto... method AddInterceptor (line 291) | func (mh *MsgHandle) AddInterceptor(interceptor ziface.IInterceptor) { method SendMsgToTaskQueue (line 299) | func (mh *MsgHandle) SendMsgToTaskQueue(request ziface.IRequest) { method doFuncHandler (line 308) | func (mh *MsgHandle) doFuncHandler(request ziface.IFuncRequest, worker... method doMsgHandler (line 320) | func (mh *MsgHandle) doMsgHandler(request ziface.IRequest, workerID in... method Execute (line 346) | func (mh *MsgHandle) Execute(request ziface.IRequest) { method AddRouter (line 354) | func (mh *MsgHandle) AddRouter(msgID uint32, router ziface.IRouter) { method AddRouterSlices (line 369) | func (mh *MsgHandle) AddRouterSlices(msgId uint32, handler ...ziface.R... method Group (line 375) | func (mh *MsgHandle) Group(start, end uint32, Handlers ...ziface.Route... method Use (line 378) | func (mh *MsgHandle) Use(Handlers ...ziface.RouterHandler) ziface.IRou... method doMsgHandlerSlices (line 383) | func (mh *MsgHandle) doMsgHandlerSlices(request ziface.IRequest, worke... method StopOneWorker (line 403) | func (mh *MsgHandle) StopOneWorker(workerID int) { method StartOneWorker (line 412) | func (mh *MsgHandle) StartOneWorker(workerID int, taskQueue chan zifac... method StartWorkerPool (line 447) | func (mh *MsgHandle) StartWorkerPool() { function newMsgHandle (line 54) | func newMsgHandle() *MsgHandle { function newCliMsgHandle (line 108) | func newCliMsgHandle() *MsgHandle { function useWorker (line 162) | func useWorker(conn ziface.IConnection) uint32 { function freeWorker (line 221) | func freeWorker(conn ziface.IConnection) { FILE: znet/options.go type Option (line 12) | type Option function WithPacket (line 17) | func WithPacket(pack ziface.IDataPack) Option { type ClientOption (line 24) | type ClientOption function WithPacketClient (line 28) | func WithPacketClient(pack ziface.IDataPack) ClientOption { function WithNameClient (line 35) | func WithNameClient(name string) ClientOption { function WithUrl (line 41) | func WithUrl(url *url.URL) ClientOption { function WithWsHeader (line 48) | func WithWsHeader(header http.Header) ClientOption { FILE: znet/request.go constant PRE_HANDLE (line 13) | PRE_HANDLE ziface.HandleStep = iota constant HANDLE (line 14) | HANDLE constant POST_HANDLE (line 15) | POST_HANDLE constant HANDLE_OVER (line 17) | HANDLE_OVER function init (line 22) | func init() { type Request (line 29) | type Request struct method GetResponse (line 43) | func (r *Request) GetResponse() ziface.IcResp { method SetResponse (line 47) | func (r *Request) SetResponse(response ziface.IcResp) { method Reset (line 90) | func (r *Request) Reset(conn ziface.IConnection, msg ziface.IMessage) { method Copy (line 103) | func (r *Request) Copy() ziface.IRequest { method Set (line 136) | func (r *Request) Set(key string, value interface{}) { method Get (line 147) | func (r *Request) Get(key string) (value interface{}, exists bool) { method GetMessage (line 154) | func (r *Request) GetMessage() ziface.IMessage { method GetConnection (line 158) | func (r *Request) GetConnection() ziface.IConnection { method GetData (line 162) | func (r *Request) GetData() []byte { method GetMsgID (line 166) | func (r *Request) GetMsgID() uint32 { method BindRouter (line 170) | func (r *Request) BindRouter(router ziface.IRouter) { method next (line 174) | func (r *Request) next() { method Goto (line 185) | func (r *Request) Goto(step ziface.HandleStep) { method Call (line 192) | func (r *Request) Call() { method Abort (line 214) | func (r *Request) Abort() { method BindRouterSlices (line 225) | func (r *Request) BindRouterSlices(handlers []ziface.RouterHandler) { method RouterSlicesNext (line 229) | func (r *Request) RouterSlicesNext() { function NewRequest (line 51) | func NewRequest(conn ziface.IConnection, msg ziface.IMessage) ziface.IRe... function GetRequest (line 62) | func GetRequest(conn ziface.IConnection, msg ziface.IMessage) ziface.IRe... function PutRequest (line 75) | func PutRequest(request ziface.IRequest) { function allocateRequest (line 82) | func allocateRequest() ziface.IRequest { FILE: znet/request_func.go type RequestFunc (line 5) | type RequestFunc struct method GetConnection (line 11) | func (rf *RequestFunc) GetConnection() ziface.IConnection { method CallFunc (line 15) | func (rf *RequestFunc) CallFunc() { function NewFuncRequest (line 21) | func NewFuncRequest(conn ziface.IConnection, callFunc func()) ziface.IRe... FILE: znet/router.go type BaseRouter (line 13) | type BaseRouter struct method PreHandle (line 23) | func (br *BaseRouter) PreHandle(req ziface.IRequest) {} method Handle (line 26) | func (br *BaseRouter) Handle(req ziface.IRequest) {} method PostHandle (line 29) | func (br *BaseRouter) PostHandle(req ziface.IRequest) {} type RouterSlices (line 42) | type RouterSlices struct method Use (line 55) | func (r *RouterSlices) Use(handles ...ziface.RouterHandler) { method AddHandler (line 59) | func (r *RouterSlices) AddHandler(msgId uint32, Handlers ...ziface.Rou... method GetHandlers (line 72) | func (r *RouterSlices) GetHandlers(MsgId uint32) ([]ziface.RouterHandl... method Group (line 79) | func (r *RouterSlices) Group(start, end uint32, Handlers ...ziface.Rou... function NewRouterSlices (line 48) | func NewRouterSlices() *RouterSlices { type GroupRouter (line 83) | type GroupRouter struct method Use (line 101) | func (g *GroupRouter) Use(Handlers ...ziface.RouterHandler) { method AddHandler (line 105) | func (g *GroupRouter) AddHandler(MsgId uint32, Handlers ...ziface.Rout... function NewGroup (line 90) | func NewGroup(start, end uint32, router *RouterSlices, Handlers ...zifac... FILE: znet/routerSilces_test.go function A1 (line 11) | func A1(request ziface.IRequest) { function A2 (line 16) | func A2(request ziface.IRequest) { function A3 (line 28) | func A3(request ziface.IRequest) { function A4 (line 32) | func A4(request ziface.IRequest) { function TestRouterAdd (line 37) | func TestRouterAdd(t *testing.T) { FILE: znet/server.go type Server (line 31) | type Server struct method StartConn (line 224) | func (s *Server) StartConn(conn ziface.IConnection) { method ListenTcpConn (line 238) | func (s *Server) ListenTcpConn() { method ListenWebsocketConn (line 316) | func (s *Server) ListenWebsocketConn() { method ListenKcpConn (line 374) | func (s *Server) ListenKcpConn() { method Start (line 431) | func (s *Server) Start() { method Stop (line 460) | func (s *Server) Stop() { method Serve (line 471) | func (s *Server) Serve() { method AddRouter (line 481) | func (s *Server) AddRouter(msgID uint32, router ziface.IRouter) { method AddRouterSlices (line 488) | func (s *Server) AddRouterSlices(msgID uint32, router ...ziface.Router... method Group (line 495) | func (s *Server) Group(start, end uint32, Handlers ...ziface.RouterHan... method Use (line 502) | func (s *Server) Use(Handlers ...ziface.RouterHandler) ziface.IRouterS... method GetConnMgr (line 509) | func (s *Server) GetConnMgr() ziface.IConnManager { method SetOnConnStart (line 513) | func (s *Server) SetOnConnStart(hookFunc func(ziface.IConnection)) { method SetOnConnStop (line 517) | func (s *Server) SetOnConnStop(hookFunc func(ziface.IConnection)) { method GetOnConnStart (line 521) | func (s *Server) GetOnConnStart() func(ziface.IConnection) { method GetOnConnStop (line 525) | func (s *Server) GetOnConnStop() func(ziface.IConnection) { method GetPacket (line 529) | func (s *Server) GetPacket() ziface.IDataPack { method SetPacket (line 533) | func (s *Server) SetPacket(packet ziface.IDataPack) { method GetMsgHandler (line 537) | func (s *Server) GetMsgHandler() ziface.IMsgHandle { method StartHeartBeat (line 545) | func (s *Server) StartHeartBeat(interval time.Duration) { method StartHeartBeatWithOption (line 565) | func (s *Server) StartHeartBeatWithOption(interval time.Duration, opti... method GetHeartBeat (line 592) | func (s *Server) GetHeartBeat() ziface.IHeartbeatChecker { method SetDecoder (line 596) | func (s *Server) SetDecoder(decoder ziface.IDecoder) { method GetLengthField (line 600) | func (s *Server) GetLengthField() *ziface.LengthField { method AddInterceptor (line 607) | func (s *Server) AddInterceptor(interceptor ziface.IInterceptor) { method SetWebsocketAuth (line 611) | func (s *Server) SetWebsocketAuth(f func(r *http.Request) error) { method ServerName (line 615) | func (s *Server) ServerName() string { type KcpConfig (line 94) | type KcpConfig struct function newServerWithConfig (line 129) | func newServerWithConfig(config *zconf.Config, ipVersion string, opts ..... function NewServer (line 182) | func NewServer(opts ...Option) ziface.IServer { function NewUserConfServer (line 188) | func NewUserConfServer(config *zconf.Config, opts ...Option) ziface.ISer... function NewDefaultRouterSlicesServer (line 200) | func NewDefaultRouterSlicesServer(opts ...Option) ziface.IServer { function NewUserConfDefaultRouterSlicesServer (line 210) | func NewUserConfDefaultRouterSlicesServer(config *zconf.Config, opts ...... function init (line 619) | func init() {} FILE: znet/server_test.go function ClientTest (line 21) | func ClientTest(i uint32) { type PingRouter (line 77) | type PingRouter struct method PreHandle (line 82) | func (this *PingRouter) PreHandle(request ziface.IRequest) { method Handle (line 91) | func (this *PingRouter) Handle(request ziface.IRequest) { method PostHandle (line 103) | func (this *PingRouter) PostHandle(request ziface.IRequest) { type HelloRouter (line 111) | type HelloRouter struct method Handle (line 115) | func (this *HelloRouter) Handle(request ziface.IRequest) { function DoConnectionBegin (line 125) | func DoConnectionBegin(conn ziface.IConnection) { function DoConnectionLost (line 133) | func DoConnectionLost(conn ziface.IConnection) { function TestServer (line 137) | func TestServer(t *testing.T) { function TestServerDeadLock (line 157) | func TestServerDeadLock(t *testing.T) { type CloseConnectionBeforeSendMsgRouter (line 170) | type CloseConnectionBeforeSendMsgRouter struct method Handle (line 183) | func (br *CloseConnectionBeforeSendMsgRouter) Handle(req ziface.IReque... type DemoPacket (line 174) | type DemoPacket struct method Pack (line 178) | func (d *DemoPacket) Pack(msg ziface.IMessage) ([]byte, error) { function TestCloseConnectionBeforeSendMsg (line 191) | func TestCloseConnectionBeforeSendMsg(t *testing.T) { FILE: znet/ws_connection.go type WsConnectionHttpReqCtxKey (line 22) | type WsConnectionHttpReqCtxKey struct type WsConnection (line 26) | type WsConnection struct method StartWriter (line 185) | func (c *WsConnection) StartWriter() { method StartReader (line 210) | func (c *WsConnection) StartReader() { method Start (line 276) | func (c *WsConnection) Start() { method Stop (line 312) | func (c *WsConnection) Stop() { method GetConnection (line 316) | func (c *WsConnection) GetConnection() net.Conn { method GetWsConn (line 320) | func (c *WsConnection) GetWsConn() *websocket.Conn { method GetTCPConnection (line 325) | func (c *WsConnection) GetTCPConnection() net.Conn { method GetConnID (line 329) | func (c *WsConnection) GetConnID() uint64 { method GetConnIdStr (line 333) | func (c *WsConnection) GetConnIdStr() string { method GetWorkerID (line 337) | func (c *WsConnection) GetWorkerID() uint32 { method RemoteAddr (line 341) | func (c *WsConnection) RemoteAddr() net.Addr { method LocalAddr (line 345) | func (c *WsConnection) LocalAddr() net.Addr { method Send (line 349) | func (c *WsConnection) Send(data []byte) error { method SendToQueue (line 365) | func (c *WsConnection) SendToQueue(data []byte, opts ...ziface.MsgSend... method SendMsg (line 408) | func (c *WsConnection) SendMsg(msgID uint32, data []byte) error { method SendBuffMsg (line 434) | func (c *WsConnection) SendBuffMsg(msgID uint32, data []byte, opts ...... method SetProperty (line 479) | func (c *WsConnection) SetProperty(key string, value interface{}) { method GetProperty (line 489) | func (c *WsConnection) GetProperty(key string) (interface{}, error) { method RemoveProperty (line 500) | func (c *WsConnection) RemoveProperty(key string) { method Context (line 509) | func (c *WsConnection) Context() context.Context { method finalizer (line 513) | func (c *WsConnection) finalizer() { method callOnConnStart (line 565) | func (c *WsConnection) callOnConnStart() { method callOnConnStop (line 572) | func (c *WsConnection) callOnConnStop() { method IsAlive (line 579) | func (c *WsConnection) IsAlive() bool { method updateActivity (line 589) | func (c *WsConnection) updateActivity() { method SetHeartBeat (line 593) | func (c *WsConnection) SetHeartBeat(checker ziface.IHeartbeatChecker) { method LocalAddrString (line 597) | func (c *WsConnection) LocalAddrString() string { method RemoteAddrString (line 601) | func (c *WsConnection) RemoteAddrString() string { method GetName (line 605) | func (c *WsConnection) GetName() string { method GetMsgHandler (line 609) | func (c *WsConnection) GetMsgHandler() ziface.IMsgHandle { method AddCloseCallback (line 613) | func (s *WsConnection) AddCloseCallback(handler, key interface{}, f fu... method RemoveCloseCallback (line 622) | func (s *WsConnection) RemoveCloseCallback(handler, key interface{}) { method InvokeCloseCallbacks (line 631) | func (s *WsConnection) InvokeCloseCallbacks() { function newWebsocketConn (line 119) | func newWebsocketConn(server ziface.IServer, conn *websocket.Conn, connI... function newWsClientConn (line 156) | func newWsClientConn(client ziface.IClient, conn *websocket.Conn) ziface... FILE: znotify/notify.go type notify (line 20) | type notify struct method genConnStrId (line 30) | func (n *notify) genConnStrId(connID uint64) string { method ConnNums (line 35) | func (n *notify) ConnNums() int { method HasIdConn (line 39) | func (n *notify) HasIdConn(Id uint64) bool { method SetNotifyID (line 44) | func (n *notify) SetNotifyID(Id uint64, conn ziface.IConnection) { method GetNotifyByID (line 49) | func (n *notify) GetNotifyByID(Id uint64) (ziface.IConnection, error) { method DelNotifyByID (line 59) | func (n *notify) DelNotifyByID(Id uint64) { method NotifyToConnByID (line 64) | func (n *notify) NotifyToConnByID(Id uint64, MsgId uint32, data []byte... method NotifyAll (line 77) | func (n *notify) NotifyAll(MsgId uint32, data []byte) error { method NotifyBuffToConnByID (line 90) | func (n *notify) NotifyBuffToConnByID(Id uint64, MsgId uint32, data []... method NotifyBuffAll (line 103) | func (n *notify) NotifyBuffAll(MsgId uint32, data []byte) error { function NewZNotify (line 24) | func NewZNotify() ziface.Inotify { FILE: znotify/notify_test.go type router (line 18) | type router struct method Handle (line 22) | func (r *router) Handle(req ziface.IRequest) { function Server (line 27) | func Server() { function Clinet (line 44) | func Clinet() { function ClientJoin (line 72) | func ClientJoin() { function TestAA (line 105) | func TestAA(t *testing.T) { function BenchmarkNotify (line 112) | func BenchmarkNotify(b *testing.B) { function init (line 122) | func init() { FILE: zpack/datapack_ltv_littleendian.go type DataPackLtv (line 15) | type DataPackLtv struct method GetHeadLen (line 25) | func (dp *DataPackLtv) GetHeadLen() uint32 { method Pack (line 32) | func (dp *DataPackLtv) Pack(msg ziface.IMessage) ([]byte, error) { method Unpack (line 57) | func (dp *DataPackLtv) Unpack(binaryData []byte) (ziface.IMessage, err... function NewDataPackLtv (line 19) | func NewDataPackLtv() ziface.IDataPack { FILE: zpack/datapack_tlv_bigendian.go type DataPack (line 14) | type DataPack struct method GetHeadLen (line 24) | func (dp *DataPack) GetHeadLen() uint32 { method Pack (line 31) | func (dp *DataPack) Pack(msg ziface.IMessage) ([]byte, error) { method Unpack (line 56) | func (dp *DataPack) Unpack(binaryData []byte) (ziface.IMessage, error) { function NewDataPack (line 18) | func NewDataPack() ziface.IDataPack { FILE: zpack/datapack_tlv_bigendian_test.go function TestDataPack (line 17) | func TestDataPack(t *testing.T) { FILE: zpack/message.go type Message (line 4) | type Message struct method Init (line 37) | func (msg *Message) Init(ID uint32, data []byte) { method GetDataLen (line 44) | func (msg *Message) GetDataLen() uint32 { method GetMsgID (line 48) | func (msg *Message) GetMsgID() uint32 { method GetData (line 52) | func (msg *Message) GetData() []byte { method GetRawData (line 56) | func (msg *Message) GetRawData() []byte { method SetDataLen (line 60) | func (msg *Message) SetDataLen(len uint32) { method SetMsgID (line 64) | func (msg *Message) SetMsgID(msgID uint32) { method SetData (line 68) | func (msg *Message) SetData(data []byte) { function NewMsgPackage (line 11) | func NewMsgPackage(ID uint32, data []byte) *Message { function NewMessage (line 20) | func NewMessage(len uint32, data []byte) *Message { function NewMessageByMsgId (line 28) | func NewMessageByMsgId(id uint32, len uint32, data []byte) *Message { FILE: zpack/packfactory.go type pack_factory (line 11) | type pack_factory struct method NewPack (line 30) | func (f *pack_factory) NewPack(kind string) ziface.IDataPack { function Factory (line 20) | func Factory() *pack_factory { FILE: ztimer/delayfunc.go type DelayFunc (line 22) | type DelayFunc struct method String (line 36) | func (df *DelayFunc) String() string { method Call (line 41) | func (df *DelayFunc) Call() { function NewDelayFunc (line 28) | func NewDelayFunc(f func(v ...interface{}), args []interface{}) *DelayFu... FILE: ztimer/delayfunc_test.go function SayHello (line 15) | func SayHello(message ...interface{}) { function TestDelayfunc (line 19) | func TestDelayfunc(t *testing.T) { FILE: ztimer/timer.go constant HourName (line 15) | HourName = "HOUR" constant HourInterval (line 17) | HourInterval = 60 * 60 * 1e3 constant HourScales (line 19) | HourScales = 12 constant MinuteName (line 22) | MinuteName = "MINUTE" constant MinuteInterval (line 24) | MinuteInterval = 60 * 1e3 constant MinuteScales (line 26) | MinuteScales = 60 constant SecondName (line 29) | SecondName = "SECOND" constant SecondInterval (line 31) | SecondInterval = 1e3 constant SecondScales (line 33) | SecondScales = 60 constant TimersMaxCap (line 35) | TimersMaxCap = 2048 type Timer (line 49) | type Timer struct method Run (line 75) | func (t *Timer) Run() { function UnixMilli (line 57) | func UnixMilli() int64 { function NewTimerAt (line 62) | func NewTimerAt(df *DelayFunc, unixNano int64) *Timer { function NewTimerAfter (line 70) | func NewTimerAfter(df *DelayFunc, duration time.Duration) *Timer { FILE: ztimer/timer_test.go function myFunc (line 17) | func myFunc(v ...interface{}) { function TestTimer (line 21) | func TestTimer(t *testing.T) { FILE: ztimer/timerscheduler.go constant MaxChanBuff (line 22) | MaxChanBuff = 2048 constant MaxTimeDelay (line 24) | MaxTimeDelay = 100 type TimerScheduler (line 28) | type TimerScheduler struct method CreateTimerAt (line 65) | func (ts *TimerScheduler) CreateTimerAt(df *DelayFunc, unixNano int64)... method CreateTimerAfter (line 74) | func (ts *TimerScheduler) CreateTimerAfter(df *DelayFunc, duration tim... method CancelTimer (line 83) | func (ts *TimerScheduler) CancelTimer(tID uint32) { method GetTriggerChan (line 95) | func (ts *TimerScheduler) GetTriggerChan() chan *DelayFunc { method Start (line 100) | func (ts *TimerScheduler) Start() { function NewTimerScheduler (line 40) | func NewTimerScheduler() *TimerScheduler { function NewAutoExecTimerScheduler (line 120) | func NewAutoExecTimerScheduler() *TimerScheduler { FILE: ztimer/timerscheduler_test.go function foo (line 21) | func foo(args ...interface{}) { function TestNewTimerScheduler (line 26) | func TestNewTimerScheduler(t *testing.T) { function TestNewAutoExecTimerScheduler (line 53) | func TestNewAutoExecTimerScheduler(t *testing.T) { function TestCancelTimerScheduler (line 71) | func TestCancelTimerScheduler(t *testing.T) { FILE: ztimer/timewheel.go type TimeWheel (line 30) | type TimeWheel struct method addTimer (line 85) | func (tw *TimeWheel) addTimer(tID uint32, t *Timer, forceNext bool) er... method AddTimer (line 133) | func (tw *TimeWheel) AddTimer(tID uint32, t *Timer) error { method RemoveTimer (line 141) | func (tw *TimeWheel) RemoveTimer(tID uint32) { method AddTimeWheel (line 153) | func (tw *TimeWheel) AddTimeWheel(next *TimeWheel) { method run (line 161) | func (tw *TimeWheel) run() { method Run (line 191) | func (tw *TimeWheel) Run() { method GetTimerWithIn (line 197) | func (tw *TimeWheel) GetTimerWithIn(duration time.Duration) map[uint32... function NewTimeWheel (line 51) | func NewTimeWheel(name string, interval int64, scales int, maxCap int) *... FILE: ztimer/timewheel_test.go function TestTimerWheel (line 17) | func TestTimerWheel(t *testing.T) { FILE: zutils/hash.go constant Prime (line 4) | Prime = 16777619 constant HashVal (line 5) | HashVal = 2166136261 type IHash (line 8) | type IHash interface type Fnv32Hash (line 12) | type Fnv32Hash struct method Sum (line 19) | func (f *Fnv32Hash) Sum(key string) uint32 { function DefaultHash (line 14) | func DefaultHash() IHash { FILE: zutils/shard_lock_map.go type ShardLockMaps (line 18) | type ShardLockMaps struct method GetShard (line 76) | func (slm ShardLockMaps) GetShard(key string) *SingleShardMap { method Count (line 81) | func (slm ShardLockMaps) Count() int { method Get (line 93) | func (slm ShardLockMaps) Get(key string) (interface{}, bool) { method Set (line 102) | func (slm ShardLockMaps) Set(key string, value interface{}) { method SetNX (line 110) | func (slm ShardLockMaps) SetNX(key string, value interface{}) bool { method MSet (line 122) | func (slm ShardLockMaps) MSet(data map[string]interface{}) { method Has (line 132) | func (slm ShardLockMaps) Has(key string) bool { method Remove (line 141) | func (slm ShardLockMaps) Remove(key string) { method RemoveCb (line 155) | func (slm ShardLockMaps) RemoveCb(key string, cb RemoveCb) bool { method Pop (line 169) | func (slm ShardLockMaps) Pop(key string) (v interface{}, exists bool) { method GetOrSet (line 180) | func (slm ShardLockMaps) GetOrSet(key string, value interface{}) (inte... method GetOrSetFunc (line 190) | func (slm ShardLockMaps) GetOrSetFunc(key string, f func(key string) i... method GetOrSetFuncLock (line 201) | func (slm ShardLockMaps) GetOrSetFuncLock(key string, f func(key strin... method doSetWithLockCheck (line 209) | func (slm ShardLockMaps) doSetWithLockCheck(key string, val interface{... method doSetWithLockCheckWithFunc (line 223) | func (slm ShardLockMaps) doSetWithLockCheckWithFunc(key string, f func... method Clear (line 238) | func (slm ShardLockMaps) Clear() { method LockFuncWithKey (line 246) | func (slm ShardLockMaps) LockFuncWithKey(key string, f func(shardData ... method RLockFuncWithKey (line 255) | func (slm ShardLockMaps) RLockFuncWithKey(key string, f func(shardData... method LockFunc (line 264) | func (slm ShardLockMaps) LockFunc(f func(shardData map[string]interfac... method RLockFunc (line 274) | func (slm ShardLockMaps) RLockFunc(f func(shardData map[string]interfa... method ClearWithFuncLock (line 284) | func (slm ShardLockMaps) ClearWithFuncLock(onClear func(key string, va... method IsEmpty (line 296) | func (slm ShardLockMaps) IsEmpty() bool { method MGet (line 301) | func (slm ShardLockMaps) MGet(keys ...string) map[string]interface{} { method GetAll (line 312) | func (slm ShardLockMaps) GetAll() map[string]interface{} { method IterBuffered (line 371) | func (slm ShardLockMaps) IterBuffered() <-chan Tuple { method Items (line 383) | func (slm ShardLockMaps) Items() map[string]interface{} { method Keys (line 394) | func (slm ShardLockMaps) Keys() []string { method IterCb (line 429) | func (slm ShardLockMaps) IterCb(fn IterCb) { method MarshalJSON (line 441) | func (slm ShardLockMaps) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 451) | func (slm ShardLockMaps) UnmarshalJSON(b []byte) (err error) { type SingleShardMap (line 26) | type SingleShardMap struct function createShardLockMaps (line 32) | func createShardLockMaps(hash IHash, shardCount int) ShardLockMaps { function NewShardLockMaps (line 52) | func NewShardLockMaps() ShardLockMaps { function NewShardLockMapsWithCount (line 59) | func NewShardLockMapsWithCount(shardCount int) ShardLockMaps { function NewWithCustomHash (line 65) | func NewWithCustomHash(hash IHash) ShardLockMaps { function NewWithCustomHashAndCount (line 71) | func NewWithCustomHashAndCount(hash IHash, shardCount int) ShardLockMaps { type RemoveCb (line 150) | type RemoveCb type Tuple (line 325) | type Tuple struct function snapshot (line 334) | func snapshot(slm ShardLockMaps) (chanList []chan Tuple) { function fanIn (line 355) | func fanIn(chanList []chan Tuple, out chan Tuple) { type IterCb (line 425) | type IterCb FILE: zutils/shard_lock_map_bench_test.go function BenchmarkItems (line 9) | func BenchmarkItems(b *testing.B) { function BenchmarkKeys (line 20) | func BenchmarkKeys(b *testing.B) { function BenchmarkMarshalJson (line 31) | func BenchmarkMarshalJson(b *testing.B) { function BenchmarkStrconv (line 45) | func BenchmarkStrconv(b *testing.B) { function BenchmarkSingleInsertAbsent (line 51) | func BenchmarkSingleInsertAbsent(b *testing.B) { function BenchmarkSingleInsertAbsentSyncMap (line 59) | func BenchmarkSingleInsertAbsentSyncMap(b *testing.B) { function BenchmarkSingleInsertPresent (line 67) | func BenchmarkSingleInsertPresent(b *testing.B) { function BenchmarkSingleInsertPresentSyncMap (line 76) | func BenchmarkSingleInsertPresentSyncMap(b *testing.B) { function BenchmarkMultiInsertDifferentSyncMap (line 85) | func BenchmarkMultiInsertDifferentSyncMap(b *testing.B) { function BenchmarkMultiInsertDifferent_1_Shard (line 99) | func BenchmarkMultiInsertDifferent_1_Shard(b *testing.B) { function BenchmarkMultiInsertDifferent_16_Shard (line 103) | func BenchmarkMultiInsertDifferent_16_Shard(b *testing.B) { function BenchmarkMultiInsertDifferent_32_Shard (line 107) | func BenchmarkMultiInsertDifferent_32_Shard(b *testing.B) { function BenchmarkMultiInsertDifferent_256_Shard (line 111) | func BenchmarkMultiInsertDifferent_256_Shard(b *testing.B) { function BenchmarkMultiInsertSame (line 116) | func BenchmarkMultiInsertSame(b *testing.B) { function BenchmarkMultiInsertSameSyncMap (line 130) | func BenchmarkMultiInsertSameSyncMap(b *testing.B) { function BenchmarkMultiGetSame (line 144) | func BenchmarkMultiGetSame(b *testing.B) { function BenchmarkMultiGetSameSyncMap (line 158) | func BenchmarkMultiGetSameSyncMap(b *testing.B) { function BenchmarkMultiGetSetDifferentSyncMap (line 172) | func BenchmarkMultiGetSetDifferentSyncMap(b *testing.B) { function BenchmarkMultiGetSetDifferent_1_Shard (line 187) | func BenchmarkMultiGetSetDifferent_1_Shard(b *testing.B) { function BenchmarkMultiGetSetDifferent_16_Shard (line 191) | func BenchmarkMultiGetSetDifferent_16_Shard(b *testing.B) { function BenchmarkMultiGetSetDifferent_32_Shard (line 195) | func BenchmarkMultiGetSetDifferent_32_Shard(b *testing.B) { function BenchmarkMultiGetSetDifferent_256_Shard (line 199) | func BenchmarkMultiGetSetDifferent_256_Shard(b *testing.B) { function BenchmarkMultiGetSetBlockSyncMap (line 204) | func BenchmarkMultiGetSetBlockSyncMap(b *testing.B) { function BenchmarkMultiGetSetBlock_1_Shard (line 221) | func BenchmarkMultiGetSetBlock_1_Shard(b *testing.B) { function BenchmarkMultiGetSetBlock_16_Shard (line 225) | func BenchmarkMultiGetSetBlock_16_Shard(b *testing.B) { function BenchmarkMultiGetSetBlock_32_Shard (line 229) | func BenchmarkMultiGetSetBlock_32_Shard(b *testing.B) { function BenchmarkMultiGetSetBlock_256_Shard (line 233) | func BenchmarkMultiGetSetBlock_256_Shard(b *testing.B) { function benchmarkMultiInsertDifferent (line 238) | func benchmarkMultiInsertDifferent(b *testing.B) { function benchmarkMultiGetSetDifferent (line 251) | func benchmarkMultiGetSetDifferent(b *testing.B) { function benchmarkMultiGetSetBlock (line 266) | func benchmarkMultiGetSetBlock(b *testing.B) { function GetSet (line 283) | func GetSet(slm ShardLockMaps, finished chan struct{}) (set func(key, va... function GetSetSyncMap (line 297) | func GetSetSyncMap(m *sync.Map, finished chan struct{}) (get func(key, v... function benchmarkMultiInsertDifferentWithMap (line 313) | func benchmarkMultiInsertDifferentWithMap(slm ShardLockMaps, b *testing.... function benchmarkMultiGetSetDifferentWithMap (line 324) | func benchmarkMultiGetSetDifferentWithMap(slm ShardLockMaps, b *testing.... function benchmarkMultiGetSetBlockWithMap (line 336) | func benchmarkMultiGetSetBlockWithMap(slm ShardLockMaps, b *testing.B) { FILE: zutils/shard_lock_map_test.go type TestUser (line 11) | type TestUser struct function TestCreatMap (line 15) | func TestCreatMap(t *testing.T) { function TestSet (line 26) | func TestSet(t *testing.T) { function TestGet (line 44) | func TestGet(t *testing.T) { function TestHas (line 76) | func TestHas(t *testing.T) { function TestCount (line 91) | func TestCount(t *testing.T) { function TestRemove (line 103) | func TestRemove(t *testing.T) { function TestRemoveCb (line 134) | func TestRemoveCb(t *testing.T) { function TestPop (line 222) | func TestPop(t *testing.T) { function TestBufferedIterator (line 239) | func TestBufferedIterator(t *testing.T) { function TestClear (line 262) | func TestClear(t *testing.T) { function TestIterCb (line 276) | func TestIterCb(t *testing.T) { function TestItems (line 297) | func TestItems(t *testing.T) { function TestJsonMarshal (line 312) | func TestJsonMarshal(t *testing.T) { function TestUnmarshalJSON (line 328) | func TestUnmarshalJSON(t *testing.T) { function TestKeys (line 347) | func TestKeys(t *testing.T) { function TestFnv32 (line 360) | func TestFnv32(t *testing.T) { function TestKeysWhenRemoving (line 374) | func TestKeysWhenRemoving(t *testing.T) { function TestUnDrainedIterBuffered (line 396) | func TestUnDrainedIterBuffered(t *testing.T) { function TestConcurrent (line 449) | func TestConcurrent(t *testing.T) { function TestGetOrSet (line 509) | func TestGetOrSet(t *testing.T) { function TestGetOrSetFunc (line 532) | func TestGetOrSetFunc(t *testing.T) { function TestGetOrSetFuncLock (line 559) | func TestGetOrSetFuncLock(t *testing.T) { function TestMGet (line 586) | func TestMGet(t *testing.T) { function TestGetAll (line 612) | func TestGetAll(t *testing.T) { function TestLockFuncWithKey (line 627) | func TestLockFuncWithKey(t *testing.T) { function TestRLockFuncWithKey (line 646) | func TestRLockFuncWithKey(t *testing.T) { function TestLockFunc (line 665) | func TestLockFunc(t *testing.T) { function TestRLockFunc (line 687) | func TestRLockFunc(t *testing.T) { function TestClearWithFuncLock (line 704) | func TestClearWithFuncLock(t *testing.T) { FILE: zutils/snowflake_uuid.go constant workerBits (line 18) | workerBits uint8 = 10 constant maxWorker (line 19) | maxWorker int64 = -1 ^ (-1 << workerBits) constant sequenceBits (line 20) | sequenceBits uint8 = 12 constant sequenceMask (line 21) | sequenceMask int64 = -1 ^ (-1 << sequenceBits) constant workerShift (line 22) | workerShift uint8 = sequenceBits constant timestampShift (line 23) | timestampShift uint8 = sequenceBits + workerBits type IDWorker (line 26) | type IDWorker struct method NextID (line 45) | func (w *IDWorker) NextID() (int64, error) { method nextMillisecond (line 69) | func (w *IDWorker) nextMillisecond(currentTimestamp int64) int64 { function NewIDWorker (line 33) | func NewIDWorker(workerId int64) (*IDWorker, error) { FILE: zutils/snowflake_uuid_test.go function TestSnowFlakeUUID (line 8) | func TestSnowFlakeUUID(t *testing.T) { FILE: zutils/witer.go constant sizeMiB (line 18) | sizeMiB = 1024 * 1024 constant defMaxAge (line 19) | defMaxAge = 31 constant defMaxSize (line 20) | defMaxSize = 64 type Writer (line 25) | type Writer struct method daemon (line 62) | func (w *Writer) daemon() { method SetMaxAge (line 69) | func (w *Writer) SetMaxAge(ma int) { method SetMaxSize (line 76) | func (w *Writer) SetMaxSize(ms int64) { method SetCons (line 86) | func (w *Writer) SetCons(b bool) { method Write (line 92) | func (w *Writer) Write(p []byte) (n int, err error) { method rotate (line 131) | func (w *Writer) rotate() error { method delete (line 169) | func (w *Writer) delete() { method name2time (line 192) | func (w *Writer) name2time(name string) (time.Time, error) { method time2name (line 198) | func (w *Writer) time2name(t time.Time) string { method Close (line 202) | func (w *Writer) Close() error { method close (line 208) | func (w *Writer) close() error { method flush (line 220) | func (w *Writer) flush() error { function New (line 42) | func New(path string) *Writer { function ZipToFile (line 233) | func ZipToFile(dst, src string) error { function Zip (line 248) | func Zip(dst io.Writer, src string) error {