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
↓ 4 callers
Method
Auth
(auth string)
client/xclient.go:54
↓ 4 callers
Method
Call
(ctx context.Context, serviceMethod string, args interface{}, reply interface{})
client/xclient.go:57
↓ 4 callers
Method
Close
Close calls the underlying connection's Close method. If the connection is already shutting down, ErrShutdown is returned.
client/client.go:868
↓ 4 callers
Method
DoClientConnected
(net.Conn)
client/plugin.go:220
↓ 4 callers
Method
DoPostCall
(ctx context.Context, serviceName, methodName string, args, reply interface{}, err error)
server/plugin.go:34
↓ 4 callers
Method
DoPreCall
(ctx context.Context, serviceName, methodName string, args interface{})
server/plugin.go:33
↓ 4 callers
Method
GetConn
()
client/client.go:116
↓ 4 callers
Method
GetPlugins
()
client/xclient.go:51
↓ 4 callers
Method
IsHeartbeat
IsHeartbeat returns whether the message is heartbeat message.
protocol/message.go:147
↓ 4 callers
Function
NewMultiError
NewMultiError creates and returns an Error with error splice
errors/error.go:33
↓ 4 callers
Method
Parse
(fname string, isDir bool)
tool/xgen/parser/parser.go:80
↓ 4 callers
Method
Read
(p []byte)
serverplugin/tee.go:34
↓ 4 callers
Method
Select
(ctx context.Context, servicePath, serviceMethod string, args interface{})
client/selector.go:22
↓ 4 callers
Method
SetPlugins
(plugins PluginContainer)
client/xclient.go:50
↓ 4 callers
Method
UpdateServer
SelectFunc
client/selector.go:23
↓ 4 callers
Function
getCacheClientBuilder
(network string)
client/cache_client_builder.go:25
↓ 4 callers
Method
handleRequest
(ctx context.Context, req *protocol.Message)
server/server.go:685
↓ 4 callers
Method
isShutdown
()
server/server.go:644
↓ 4 callers
Function
sovArithService
(x uint64)
_testutils/arith_service.go:177
↓ 4 callers
Function
splitNetworkAndAddress
(server string)
client/xclient.go:479
↓ 3 callers
Method
Call
Call invokes the named function, waits for it to complete, and returns its error status. It handles errors base on FailMode.
client/xclient.go:541
↓ 3 callers
Method
Call
(func() error, time.Duration)
client/client.go:77
↓ 3 callers
Method
Clone
Clone clones from an message.
protocol/message.go:216
↓ 3 callers
Method
Close
Close this pool. Please make sure it won't be used any more.
client/xclient_pool.go:105
↓ 3 callers
Method
Close
Close this pool. Please make sure it won't be used any more.
client/oneclient_pool.go:97
↓ 3 callers
Method
Connect
Connect connects the server via specified network.
client/connection.go:32
↓ 3 callers
Function
Debug
(v ...interface{})
log/logger.go:46
↓ 3 callers
Method
DoPostConnClose
(net.Conn)
server/plugin.go:26
↓ 3 callers
Method
DoPostReadRequest
(ctx context.Context, r *protocol.Message, e error)
server/plugin.go:29
↓ 3 callers
Method
DoPreReadRequest
(ctx context.Context)
server/plugin.go:28
↓ 3 callers
Method
Encode
Encode encodes an object into slice of bytes.
codec/codec.go:94
↓ 3 callers
Method
GetServices
()
client/discovery.go:17
↓ 3 callers
Method
Go
(ctx context.Context, serviceMethod string, args interface{}, reply interface{}, done chan *Call)
client/xclient.go:56
↓ 3 callers
Method
IsClosing
()
client/client.go:113
↓ 3 callers
Function
NewContext
NewContext creates a server.Context for Handler.
server/context.go:21
↓ 3 callers
Function
NewLimitedPool
(minSize, maxSize int)
util/buffer_pool.go:31
↓ 3 callers
Function
NewOneClientPool
NewOneClientPool creates a fixed size OneClient pool.
client/oneclient_pool.go:27
↓ 3 callers
Function
NewPeer2PeerDiscovery
NewPeer2PeerDiscovery returns a new Peer2PeerDiscovery.
client/peer2peer_discovery.go:11
↓ 3 callers
Function
NewXClientPool
NewXClientPool creates a fixed size XClient pool.
client/xclient_pool.go:31
↓ 3 callers
Method
Read
(ctx context.Context, iprot thrift.TProtocol)
codec/testdata/thrift_colorgroup.go:46
↓ 3 callers
Method
Remove
(plugin Plugin)
server/plugin.go:18
↓ 3 callers
Method
SendRaw
(ctx context.Context, r *protocol.Message)
client/xclient.go:62
↓ 3 callers
Method
SetPlugins
SetPlugins sets client's plugins.
client/xclient_pool.go:80
↓ 3 callers
Method
SetPlugins
SetPlugins sets client's plugins.
client/oneclient_pool.go:73
↓ 3 callers
Method
SetVersion
SetVersion sets version for this header.
protocol/message.go:132
↓ 3 callers
Method
UnregisterAll
UnregisterAll unregisters all services. You can call this method when you want to shutdown/upgrade this node.
server/service.go:345
↓ 3 callers
Function
Unzip
Unzip unzips data.
util/compress.go:29
↓ 3 callers
Method
Version
Version returns version of rpcx protocol.
protocol/message.go:127
↓ 3 callers
Function
Warn
(v ...interface{})
log/logger.go:60
↓ 3 callers
Method
WatchService
return all services in the registry
client/discovery.go:18
↓ 3 callers
Method
auth
(ctx context.Context, req *protocol.Message)
server/server.go:676
↓ 3 callers
Method
buildRing
()
client/selector.go:143
↓ 3 callers
Method
deleteCachedClient
(client RPCClient, k, servicePath, serviceMethod string)
client/xclient.go:383
↓ 3 callers
Function
encodeVarintArithService
(dAtA []byte, offset int, v uint64)
_testutils/arith_service.go:147
↓ 3 callers
Function
generateJSON
(typ reflect.Type)
reflection/server_reflection.go:207
↓ 3 callers
Function
generateTypeDefination
(name, pkg string, jsonValue string)
reflection/server_reflection.go:182
↓ 3 callers
Method
getCachedClient
(k string, servicePath, serviceMethod string, _ interface{})
client/xclient.go:307
↓ 3 callers
Method
getCachedClientWithoutLock
(k, servicePath, serviceMethod string)
client/xclient.go:442
↓ 3 callers
Function
newConsistentHashSelector
(servers map[string]string)
client/selector.go:282
↓ 3 callers
Method
sendResponse
(ctx *share.Context, conn net.Conn, err error, req, res *protocol.Message)
server/server.go:358
↓ 3 callers
Method
serveConn
(conn net.Conn)
server/server.go:394
↓ 3 callers
Method
wrapSendRaw
wrapSendRaw wrap SendRaw to support client plugins
client/xclient.go:904
↓ 2 callers
Method
Call
Call Circuit function
client/circuit_breaker.go:32
↓ 2 callers
Method
Close
()
client/client.go:107
↓ 2 callers
Method
ConfigGeoSelector
(latitude, longitude float64)
client/xclient.go:53
↓ 2 callers
Method
Decode
Decode decodes a message from reader.
protocol/message.go:416
↓ 2 callers
Method
DoClientConnectionClose
(net.Conn)
client/plugin.go:221
↓ 2 callers
Method
DoRegister
(name string, rcvr interface{}, metadata string)
server/plugin.go:21
↓ 2 callers
Method
DoRegisterFunction
(serviceName, fname string, fn interface{}, metadata string)
server/plugin.go:22
↓ 2 callers
Method
Encode
Encode encodes an object into slice of bytes.
codec/codec.go:50
↓ 2 callers
Method
Encode
(i interface{})
codec/codec.go:119
↓ 2 callers
Method
Error
Error returns the message of the actual error
errors/error.go:15
↓ 2 callers
Method
Get
Get returns value for key.
server/context.go:26
↓ 2 callers
Function
GetFreePort
GetFreePort gets a free port.
util/net.go:14
↓ 2 callers
Method
Go
Go invokes the function asynchronously. It returns the Call structure representing the invocation. The done channel will signal when the call is compl
client/xclient.go:504
↓ 2 callers
Function
HTTPRequest2RpcxRequest
HTTPRequest2RpcxRequest converts a http request to a rpcx request.
server/converter.go:29
↓ 2 callers
Method
Info
(v ...interface{})
log/logger.go:18
↓ 2 callers
Function
IsShareContext
IsShareContext checks whether a context is share.Context.
share/context.go:106
↓ 2 callers
Method
MessageStatusType
MessageStatusType returns the message status type.
protocol/message.go:186
↓ 2 callers
Method
MuxMatch
(m cmux.CMux)
server/plugin.go:128
↓ 2 callers
Function
NewBidirectionalXClient
NewBidirectionalXClient creates a new xclient that can receive notifications from servers.
client/xclient.go:152
↓ 2 callers
Function
NewConsecCircuitBreaker
NewConsecCircuitBreaker returns a new ConsecCircuitBreaker.
client/circuit_breaker.go:24
↓ 2 callers
Method
Panic
(v ...interface{})
log/logger.go:30
↓ 2 callers
Method
Panicf
(format string, v ...interface{})
log/logger.go:31
↓ 2 callers
Method
PostCall
(ctx context.Context, serviceName, methodName string, args, reply interface{}, err error)
server/plugin.go:99
↓ 2 callers
Method
PreCall
(ctx context.Context, serviceName, methodName string, args interface{})
server/plugin.go:95
↓ 2 callers
Function
Read
Read reads a message from r.
protocol/message.go:406
↓ 2 callers
Method
RegisterServerMessageChan
(ch chan<- *protocol.Message)
client/client.go:110
↓ 2 callers
Method
RemoveWatcher
watch the change of services, it's a golang channel
client/discovery.go:19
↓ 2 callers
Method
SetSelector
(s Selector)
client/xclient.go:52
↓ 2 callers
Method
Size
()
_testutils/arith_service.go:156
↓ 2 callers
Function
SliceByteToString
(b []byte)
util/converter.go:7
↓ 2 callers
Method
Submit
(task func())
server/server.go:72
↓ 2 callers
Function
WithReadTimeout
WithReadTimeout sets readTimeout.
server/option.go:30
↓ 2 callers
Function
WithWriteTimeout
WithWriteTimeout sets writeTimeout.
server/option.go:37
↓ 2 callers
Method
WriteError
(err error)
server/context.go:140
↓ 2 callers
Method
Zip
([]byte)
protocol/compressor.go:13
↓ 2 callers
Method
Zip
(data []byte)
protocol/compressor.go:21
↓ 2 callers
Method
Zip
(data []byte)
protocol/compressor.go:32
↓ 2 callers
Method
Zip
(data []byte)
protocol/compressor.go:44
← previous
next →
101–200 of 869, ranked by callers