Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/smallnest/rpcx
/ functions
Functions
869 in github.com/smallnest/rpcx
⨍
Functions
869
◇
Types & classes
179
↓ 83 callers
Method
Unlock
()
share/context.go:33
↓ 79 callers
Method
Lock
()
share/context.go:29
↓ 64 callers
Method
Errorf
(format string, v ...interface{})
log/logger.go:25
↓ 49 callers
Method
Close
()
client/xclient.go:66
↓ 47 callers
Method
Fatalf
(format string, v ...interface{})
log/logger.go:28
↓ 34 callers
Function
Errorf
(format string, v ...interface{})
log/logger.go:70
↓ 33 callers
Method
Get
(t reflect.Type)
server/pool.go:55
↓ 30 callers
Method
Error
(v ...interface{})
log/logger.go:24
↓ 28 callers
Method
RemoteAddr
()
client/client.go:108
↓ 27 callers
Method
Error
()
client/client.go:39
↓ 27 callers
Method
Write
(v interface{})
server/context.go:83
↓ 26 callers
Function
Debugf
(format string, v ...interface{})
log/logger.go:49
↓ 20 callers
Method
Add
(plugin Plugin)
server/plugin.go:17
↓ 20 callers
Method
Put
(t reflect.Type, x interface{})
server/pool.go:44
↓ 20 callers
Method
Value
(key interface{})
share/context.go:37
↓ 17 callers
Method
SetMessageType
SetMessageType sets message type.
protocol/message.go:142
↓ 17 callers
Method
handleError
(res *protocol.Message, err error)
server/server.go:855
↓ 16 callers
Method
Marshal
()
_testutils/arith_service.go:78
↓ 15 callers
Function
Warnf
(format string, v ...interface{})
log/logger.go:63
↓ 14 callers
Function
NewMessage
NewMessage creates an empty message.
protocol/message.go:108
↓ 14 callers
Method
SerializeType
SerializeType returns serialization type of payload.
protocol/message.go:196
↓ 14 callers
Method
String
()
client/failmode_enumer.go:13
↓ 14 callers
Function
uncoverError
(err error)
client/xclient.go:739
↓ 13 callers
Method
Fatal
(v ...interface{})
log/logger.go:27
↓ 13 callers
Function
Info
(v ...interface{})
log/logger.go:53
↓ 13 callers
Method
done
()
client/client.go:220
↓ 12 callers
Method
Clone
(servicePath string)
client/discovery.go:20
↓ 12 callers
Method
CompressType
CompressType returns compression type of messages.
protocol/message.go:176
↓ 12 callers
Method
Serve
Serve starts and listens RPC requests. It is blocked until receiving connections from clients.
server/server.go:220
↓ 11 callers
Method
IsOneway
IsOneway returns whether the message is one-way message. If true, server won't send responses.
protocol/message.go:162
↓ 11 callers
Method
RegisterName
RegisterName is like Register but uses the provided name for the type instead of the receiver's concrete type.
server/service.go:111
↓ 11 callers
Method
String
String returns the error message.
server/service.go:32
↓ 10 callers
Function
PutData
PutData puts the byte slice into pool.
protocol/message.go:286
↓ 10 callers
Method
Seq
Seq returns sequence number of messages.
protocol/message.go:206
↓ 10 callers
Method
SetCompressType
SetCompressType sets the compression type.
protocol/message.go:181
↓ 10 callers
Method
String
()
share/context.go:71
↓ 10 callers
Function
header
(lvl, msg string)
log/default_logger.go:120
↓ 10 callers
Method
removeClient
(k, servicePath, serviceMethod string, client RPCClient)
client/xclient.go:397
↓ 10 callers
Function
setServerTimeout
(ctx context.Context)
client/xclient.go:488
↓ 9 callers
Method
Decode
(data []byte, i interface{})
codec/codec.go:22
↓ 9 callers
Method
DoPreWriteResponse
(context.Context, *protocol.Message, *protocol.Message, error)
server/plugin.go:36
↓ 9 callers
Method
Encode
(i interface{})
codec/codec.go:21
↓ 9 callers
Function
NewServer
NewServer returns a server.
server/server.go:134
↓ 9 callers
Method
SetSerializeType
SetSerializeType sets the serialization type.
protocol/message.go:201
↓ 9 callers
Method
Write
(ctx context.Context, oprot thrift.TProtocol)
codec/testdata/thrift_colorgroup.go:144
↓ 8 callers
Method
DoPostWriteResponse
(context.Context, *protocol.Message, *protocol.Message, error)
server/plugin.go:37
↓ 8 callers
Method
Encode
Encode encodes an object into slice of bytes.
codec/codec.go:65
↓ 8 callers
Method
EncodeSlicePointer
EncodeSlicePointer encodes messages as a byte slice pointer we can use pool to improve.
protocol/message.go:233
↓ 8 callers
Method
Get
Get returns a xclient. It does not remove this xclient from its cache so you don't need to put it back. Don't close this xclient because maybe other g
client/xclient_pool.go:97
↓ 8 callers
Method
SetOneway
SetOneway sets the oneway flag.
protocol/message.go:167
↓ 8 callers
Method
Shutdown
Shutdown gracefully shuts down the server without interrupting any active connections. Shutdown works by first closing the listener, then closing all
server/server.go:951
↓ 8 callers
Method
String
()
server/server.go:52
↓ 8 callers
Method
Unmarshal
(dAtA []byte)
_testutils/arith_service.go:190
↓ 8 callers
Function
isExported
(name string)
server/service.go:66
↓ 8 callers
Method
newXClient
(servicePath string)
client/oneclient.go:133
↓ 7 callers
Method
Append
(err error)
errors/error.go:19
↓ 7 callers
Function
NewContext
(ctx context.Context)
share/context.go:19
↓ 7 callers
Method
Reset
()
server/pool.go:10
↓ 7 callers
Method
SetSeq
SetSeq sets sequence number.
protocol/message.go:211
↓ 7 callers
Method
Stop
()
server/server.go:74
↓ 7 callers
Method
String
String returns a string representation of the ID. The representation is non ambiguous, string forms are quoted, number forms are preceded by a #
server/jsonrpc2_wire.go:116
↓ 6 callers
Method
Add
(plugin Plugin)
client/plugin.go:214
↓ 6 callers
Method
All
()
server/plugin.go:19
↓ 6 callers
Method
Call
Call invokes the named function, waits for it to complete, and returns its error status.
client/client.go:319
↓ 6 callers
Method
Close
()
client/multiple_servers_discovery.go:94
↓ 6 callers
Function
Error
(v ...interface{})
log/logger.go:67
↓ 6 callers
Method
Get
(size int)
util/buffer_pool.go:82
↓ 6 callers
Function
Infof
(format string, v ...interface{})
log/logger.go:56
↓ 6 callers
Function
NewMultipleServersDiscovery
NewMultipleServersDiscovery returns a new MultipleServersDiscovery.
client/multiple_servers_discovery.go:21
↓ 6 callers
Function
NewPluginContainer
()
client/plugin.go:15
↓ 6 callers
Method
Register
(name string, rcvr interface{}, metadata string)
server/plugin.go:53
↓ 6 callers
Method
SetMessageStatusType
SetMessageStatusType sets message status type.
protocol/message.go:191
↓ 6 callers
Method
SetValue
(key, val interface{})
share/context.go:50
↓ 6 callers
Function
StringToSliceByte
(s string)
util/converter.go:11
↓ 6 callers
Function
WithLocalValue
(ctx *Context, key, val interface{})
share/context.go:88
↓ 6 callers
Function
contextCanceled
(err error)
client/xclient.go:755
↓ 6 callers
Function
newBenchmarkMessage
()
protocol/compressor_test.go:11
↓ 6 callers
Method
selectClient
selects a client from candidates base on c.selectMode
client/xclient.go:256
↓ 6 callers
Function
tcpMakeListener
(network string)
server/listener.go:44
↓ 6 callers
Method
wrapCall
(ctx context.Context, client RPCClient, serviceMethod string, args interface{}, reply interface{})
client/xclient.go:876
↓ 5 callers
Method
Address
Address returns listened address.
server/server.go:158
↓ 5 callers
Method
Close
Close immediately closes all active net.Listeners.
server/server.go:905
↓ 5 callers
Method
ErrorOrNil
()
errors/error.go:25
↓ 5 callers
Method
GetPlugins
GetPlugins returns client's plugins.
client/xclient_pool.go:90
↓ 5 callers
Method
GetPlugins
GetPlugins returns client's plugins.
client/oneclient_pool.go:82
↓ 5 callers
Method
Init
(t reflect.Type)
server/pool.go:34
↓ 5 callers
Method
IsServiceError
()
client/client.go:40
↓ 5 callers
Method
IsShutdown
()
client/client.go:114
↓ 5 callers
Method
Log
(keyvals ...interface{})
server/listener_linux.go:64
↓ 5 callers
Function
NewXClient
NewXClient creates a XClient that supports service discovery and service governance.
client/xclient.go:114
↓ 5 callers
Method
Put
(b *[]byte)
util/buffer_pool.go:93
↓ 5 callers
Method
SetHeartbeat
SetHeartbeat sets the heartbeat flag.
protocol/message.go:152
↓ 5 callers
Method
String
()
reflection/server_reflection.go:52
↓ 5 callers
Function
WithValue
(parent context.Context, key, val interface{})
share/context.go:75
↓ 5 callers
Function
Zip
Zip zips data.
util/compress.go:50
↓ 5 callers
Function
filterByStateAndGroup
(group string, servers map[string]string)
client/xclient.go:232
↓ 5 callers
Method
findCachedClient
(k, servicePath, serviceMethod string)
client/xclient.go:374
↓ 5 callers
Function
isExportedOrBuiltinType
(t reflect.Type)
server/service.go:71
↓ 5 callers
Function
newWeightedRoundRobinSelector
(servers map[string]string)
client/selector.go:120
↓ 5 callers
Method
withPrefix
(m string)
serverplugin/metrics.go:29
next →
1–100 of 869, ranked by callers