Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buf1024/golib
/ functions
Functions
132 in github.com/buf1024/golib
⨍
Functions
132
◇
Types & classes
23
↓ 12 callers
Method
LocalAddress
()
net/connection.go:96
↓ 12 callers
Method
String
()
exam/pb/pb.pb.go:78
↓ 11 callers
Method
logMsg
(level int, msg string)
net/connection.go:149
↓ 10 callers
Method
RemoteAddress
()
net/connection.go:69
↓ 8 callers
Method
Debug
(msg *PbProto)
exam/pb/proto.go:118
↓ 8 callers
Method
Error
(format string, a ...interface{})
logging/logging.go:76
↓ 8 callers
Method
SendData
SendData 向connection发送数据,如果connection不支持,data为[]byte
net/connection.go:518
↓ 7 callers
Method
GetMessage
(command uint64)
exam/pb/proto.go:123
↓ 7 callers
Function
PrivateEncrypt
(privt *rsa.PrivateKey, data []byte)
crypt/rsa.go:99
↓ 7 callers
Function
PublicDecrypt
(pub *rsa.PublicKey, data []byte)
crypt/rsa.go:106
↓ 7 callers
Method
Write
(msg *Message)
logging/logging.go:35
↓ 7 callers
Method
logMessage
(chanMsg *Message, logMsg string, format string, a ...interface{})
logging/logging.go:175
↓ 6 callers
Method
Close
()
logging/logging.go:36
↓ 6 callers
Method
Net
()
net/connection.go:93
↓ 6 callers
Function
assertArrayEqual
(t *testing.T, a []byte, b []byte)
crypt/rsa_test.go:14
↓ 4 callers
Method
CloseConn
CloseConn 关闭连接
net/connection.go:539
↓ 4 callers
Method
PollEvent
PollEvent 事件轮询
net/connection.go:497
↓ 4 callers
Method
Sync
()
logging/logging.go:37
↓ 4 callers
Method
checkConnErr
(count int, err error, conn *Connection)
net/connection.go:252
↓ 3 callers
Method
GetSID
()
exam/pb/pb.pb.go:82
↓ 3 callers
Method
Status
()
net/connection.go:61
↓ 2 callers
Method
Connect
Connect 连接服务器器
net/connection.go:471
↓ 2 callers
Method
Critical
(format string, a ...interface{})
logging/logging.go:59
↓ 2 callers
Method
Debug
(format string, a ...interface{})
logging/logging.go:143
↓ 2 callers
Method
Info
(format string, a ...interface{})
logging/logging.go:126
↓ 2 callers
Method
Listen
Listen 监听网络 addr 为监听地址
net/connection.go:447
↓ 2 callers
Method
Name
()
logging/logging.go:33
↓ 2 callers
Method
Notice
(format string, a ...interface{})
logging/logging.go:109
↓ 2 callers
Function
Register
(log Loger)
logging/logging.go:353
↓ 2 callers
Function
SetupLog
(name string, conf string)
logging/logging.go:340
↓ 2 callers
Method
Trace
(format string, a ...interface{})
logging/logging.go:159
↓ 2 callers
Method
Warning
(format string, a ...interface{})
logging/logging.go:93
↓ 2 callers
Method
del
(con *mynet.Connection)
exam/pb/server/pb_server.go:88
↓ 2 callers
Method
handleRead
(conn *Connection)
net/connection.go:282
↓ 2 callers
Method
handleWrite
(conn *Connection)
net/connection.go:365
↓ 2 callers
Method
logSwitch
()
logging/file.go:28
↓ 2 callers
Method
syncAddClient
(conn *Connection)
net/connection.go:196
↓ 2 callers
Method
syncDelClient
(conn *Connection)
net/connection.go:217
↓ 1 callers
Method
BodyLen
(head []byte)
net/connection.go:120
↓ 1 callers
Method
Close
()
logging/file.go:119
↓ 1 callers
Method
CloseListen
CloseListen 关闭服务器
net/connection.go:551
↓ 1 callers
Method
FilterAccept
(conn *Connection)
net/connection.go:118
↓ 1 callers
Method
HeadLen
()
net/connection.go:119
↓ 1 callers
Function
NewLogging
()
logging/logging.go:327
↓ 1 callers
Method
Open
(conf string)
logging/logging.go:34
↓ 1 callers
Method
Parse
(head interface{}, body []byte)
net/connection.go:121
↓ 1 callers
Method
Serialize
(data interface{})
net/connection.go:122
↓ 1 callers
Method
Start
()
logging/logging.go:244
↓ 1 callers
Method
StartAsync
()
logging/logging.go:226
↓ 1 callers
Method
Stop
()
logging/logging.go:248
↓ 1 callers
Method
UpdateTime
()
net/connection.go:72
↓ 1 callers
Method
add
(con *mynet.Connection)
exam/pb/server/pb_server.go:85
↓ 1 callers
Function
clientRcv
(conn *mynet.Connection)
exam/echo/client/echo_client.go:19
↓ 1 callers
Function
clientRcv
(conn *mynet.Connection)
exam/pb/client/pb_client.go:66
↓ 1 callers
Function
clientSend
(conn *mynet.Connection)
exam/echo/client/echo_client.go:62
↓ 1 callers
Function
clientSend
(conn *mynet.Connection)
exam/pb/client/pb_client.go:110
↓ 1 callers
Method
destroy
()
exam/pb/server/pb_server.go:199
↓ 1 callers
Function
encrypt
copy from crypt/rsa/pkcs1v5.go
crypt/rsa.go:24
↓ 1 callers
Function
handler
(conn *mynet.Connection, msg *pb.PbProto)
exam/pb/client/pb_client.go:22
↓ 1 callers
Method
handler
(conn *mynet.Connection, msg *pb.PbProto)
exam/pb/server/pb_server.go:21
↓ 1 callers
Method
hearbeat
()
exam/pb/server/pb_server.go:101
↓ 1 callers
Function
input
(conn *mynet.Connection)
exam/echo/client/echo_client.go:91
↓ 1 callers
Function
input
(conn *mynet.Connection)
exam/pb/client/pb_client.go:186
↓ 1 callers
Function
leftPad
copy from crypt/rsa/pkcs1v5.go
crypt/rsa.go:50
↓ 1 callers
Method
listening
(l *Listener)
net/connection.go:393
↓ 1 callers
Function
pkcs1v15HashInfo
copy from crypt/rsa/pkcs1v5.go
crypt/rsa.go:31
↓ 1 callers
Function
publicDecrypt
copy&modified from crypt/rsa/pkcs1v5.go
crypt/rsa.go:78
↓ 1 callers
Function
server
(listen *mynet.Listener)
exam/echo/server/echo_server.go:12
↓ 1 callers
Method
server
()
exam/pb/server/pb_server.go:152
↓ 1 callers
Method
syncAddListen
(listen *Listener)
net/connection.go:172
↓ 1 callers
Function
unLeftPad
(input []byte)
crypt/rsa.go:59
↓ 1 callers
Method
waitMsg
()
logging/logging.go:282
Method
BodyLen
(head []byte)
exam/pb/proto.go:47
Method
Close
()
logging/console.go:29
Method
Descriptor
()
exam/pb/pb.pb.go:43
Method
Descriptor
()
exam/pb/pb.pb.go:61
Method
Descriptor
()
exam/pb/pb.pb.go:80
Method
Descriptor
()
exam/pb/pb.pb.go:106
Method
FilterAccept
(conn *mynet.Connection)
exam/pb/proto.go:41
Method
GetBiz
()
exam/pb/pb.pb.go:89
Method
GetRetCode
()
exam/pb/pb.pb.go:108
Method
GetSID
()
exam/pb/pb.pb.go:45
Method
GetSID
()
exam/pb/pb.pb.go:63
Method
GetSID
()
exam/pb/pb.pb.go:115
Method
HeadLen
()
exam/pb/proto.go:44
Method
ID
()
net/connection.go:57
Method
ID
()
net/connection.go:90
Method
LocalAddress
()
net/connection.go:65
Function
LogLevel
(levelStr string)
logging/logging.go:332
Method
MarshalXML
(e *xml.Encoder, start xml.StartElement)
test/xml/map_test.go:15
Method
MarshalXML
(e *xml.Encoder, start xml.StartElement)
test/xml/cdata_test.go:21
Method
Name
()
logging/console.go:15
Method
Name
()
logging/file.go:74
Method
Net
()
net/connection.go:54
Function
NewSimpleNet
NewSimpleNet 创建
net/connection.go:126
Method
Open
(conf string)
logging/console.go:18
Method
Open
`{"prefix":"hello", "filedir":"./", "level":0, "switchsize":1024, "switchtime":86400}`)
logging/file.go:79
Method
Parse
(head interface{}, body []byte)
exam/pb/proto.go:75
Method
ProtoMessage
()
exam/pb/pb.pb.go:42
Method
ProtoMessage
()
exam/pb/pb.pb.go:60
next →
1–100 of 132, ranked by callers