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
↓ 2 callers
Method
browse
()
client/mdns_discovery.go:138
↓ 2 callers
Method
call
(ctx context.Context, mtype *methodType, argv, replyv reflect.Value)
server/service.go:371
↓ 2 callers
Method
callForFunction
(ctx context.Context, ft *functionType, argv, replyv reflect.Value)
server/service.go:400
↓ 2 callers
Method
closeConn
(conn net.Conn)
server/server.go:648
↓ 2 callers
Method
closeDoneChanLocked
()
server/server.go:1065
↓ 2 callers
Function
convertRes2Raw
(res *protocol.Message)
client/client.go:488
↓ 2 callers
Function
createGeoServer
(servers map[string]string)
client/selector.go:247
↓ 2 callers
Function
createICMPWeighted
(servers map[string]string)
client/ping_utils.go:40
↓ 2 callers
Function
encodeMetadata
len,string,len,string,......
protocol/message.go:362
↓ 2 callers
Method
fail
()
client/circuit_breaker.go:82
↓ 2 callers
Method
findPool
(size int)
util/buffer_pool.go:50
↓ 2 callers
Method
findPutPool
(size int)
util/buffer_pool.go:64
↓ 2 callers
Function
genKey
(options ...interface{})
client/hash_utils.go:39
↓ 2 callers
Method
generateClient
(k, servicePath, serviceMethod string)
client/xclient.go:416
↓ 2 callers
Method
handleJSONRPCRequest
(ctx context.Context, r *jsonrpcRequest, header http.Header)
server/jsonrpc2.go:54
↓ 2 callers
Method
handleServerRequest
(msg *protocol.Message)
client/client.go:806
↓ 2 callers
Function
hsin
(theta float64)
client/geo_utils.go:23
↓ 2 callers
Method
initMDNS
()
serverplugin/mdns.go:118
↓ 2 callers
Function
isExportedOrBuiltinType
(t reflect.Type)
reflection/server_reflection.go:219
↓ 2 callers
Method
lookup
()
client/dns_discovery.go:83
↓ 2 callers
Function
matchHTTP1Field
(r io.Reader, name string, matches func(string) bool)
server/gateway.go:105
↓ 2 callers
Function
newDirectConn
(c *Client, network, address string)
client/connection.go:87
↓ 2 callers
Function
newLevelPool
(size int)
util/buffer_pool.go:13
↓ 2 callers
Function
newRandomSelector
(servers map[string]string)
client/selector.go:50
↓ 2 callers
Function
newSelector
(selectMode SelectMode, servers map[string]string)
client/selector.go:26
↓ 2 callers
Method
processOneRequest
(ctx *share.Context, req *protocol.Message, conn net.Conn)
server/server.go:525
↓ 2 callers
Method
ready
()
client/circuit_breaker.go:67
↓ 2 callers
Method
register
(rcvr interface{}, name string, useName bool)
server/service.go:148
↓ 2 callers
Method
registerFunction
(servicePath string, fn interface{}, name string, useName bool)
server/service.go:191
↓ 2 callers
Method
reset
()
client/circuit_breaker.go:99
↓ 2 callers
Method
serveByHTTP
serveByHTTP serves by HTTP. if rpcPath is an empty string, use share.DefaultRPCPath.
server/server.go:332
↓ 2 callers
Method
serveListener
serveListener accepts incoming connections on the Listener ln, creating a new service goroutine for each. The service goroutines read requests and the
server/server.go:264
↓ 2 callers
Method
setCachedClient
(client RPCClient, k, servicePath, serviceMethod string)
client/xclient.go:364
↓ 2 callers
Function
skipArithService
(dAtA []byte)
_testutils/arith_service.go:347
↓ 2 callers
Method
startGateway
(network string, ln net.Listener)
server/gateway.go:23
↓ 2 callers
Method
storeCached
(kvPairs []*KVPair)
client/discovery.go:123
↓ 2 callers
Method
success
()
client/circuit_breaker.go:78
↓ 2 callers
Function
suitableMethods
suitableMethods returns suitable Rpc methods of typ, it will report error using log if reportErr is true.
server/service.go:271
↓ 2 callers
Function
validIP6
(ipAddress string)
server/server.go:1086
↓ 2 callers
Method
watch
watch changes of service and update cached clients.
client/xclient.go:211
↓ 2 callers
Function
writeResponse
(w http.ResponseWriter, res *jsonrpcRespone)
server/jsonrpc2.go:140
↓ 1 callers
Method
Bind
Bind parses the body data and stores the result to v.
server/context.go:67
↓ 1 callers
Method
Broadcast
(ctx context.Context, serviceMethod string, args interface{}, reply interface{})
client/xclient.go:59
↓ 1 callers
Function
CalculateWeight
CalculateWeight converts the rtt to weighted by: 1. weight=191 if t <= 10 2. weight=201 -t if 10 < t <=200 3. weight=1 if 200 < t < 1000 4. weight = 0
client/ping_utils.go:88
↓ 1 callers
Method
CheckMagicNumber
CheckMagicNumber checks whether header starts rpcx magic number.
protocol/message.go:122
↓ 1 callers
Method
ClientAfterDecode
(*protocol.Message)
client/plugin.go:203
↓ 1 callers
Method
ClientBeforeEncode
(*protocol.Message)
client/plugin.go:198
↓ 1 callers
Method
ClientConnected
(net.Conn)
client/plugin.go:188
↓ 1 callers
Method
ClientConnectionClose
(net.Conn)
client/plugin.go:193
↓ 1 callers
Method
ConnCreateFailed
(network, address string)
client/plugin.go:183
↓ 1 callers
Method
ConnCreated
(net.Conn)
client/plugin.go:179
↓ 1 callers
Method
Connect
(network, address string)
client/client.go:103
↓ 1 callers
Method
Debug
(v ...interface{})
log/logger.go:15
↓ 1 callers
Method
Debugf
(format string, v ...interface{})
log/logger.go:16
↓ 1 callers
Method
Decode
Decode decodes an object from slice of bytes.
codec/codec.go:55
↓ 1 callers
Method
Decode
Decode decodes an object from slice of bytes.
codec/codec.go:78
↓ 1 callers
Method
Decode
Decode decodes an object from slice of bytes.
codec/codec.go:106
↓ 1 callers
Method
Decode
(data []byte, i interface{})
codec/codec.go:134
↓ 1 callers
Method
DeleteCachedClient
(client RPCClient, k, servicePath, serviceMethod string)
client/cache_client_builder.go:9
↓ 1 callers
Method
DoClientAfterDecode
(*protocol.Message)
client/plugin.go:227
↓ 1 callers
Method
DoClientBeforeEncode
(*protocol.Message)
client/plugin.go:226
↓ 1 callers
Method
DoConnCreateFailed
(network, address string)
client/plugin.go:219
↓ 1 callers
Method
DoConnCreated
(net.Conn)
client/plugin.go:218
↓ 1 callers
Method
DoHeartbeatRequest
(ctx context.Context, req *protocol.Message)
server/plugin.go:42
↓ 1 callers
Method
DoPostConnAccept
(net.Conn)
server/plugin.go:25
↓ 1 callers
Method
DoPostHTTPRequest
(ctx context.Context, r *http.Request, params httprouter.Params)
server/plugin.go:30
↓ 1 callers
Method
DoPostWriteRequest
(ctx context.Context, r *protocol.Message, e error)
server/plugin.go:40
↓ 1 callers
Method
DoPreHandleRequest
(ctx context.Context, req *protocol.Message)
server/plugin.go:32
↓ 1 callers
Method
DoPreWriteRequest
(ctx context.Context)
server/plugin.go:39
↓ 1 callers
Method
DoUnregister
(name string)
server/plugin.go:23
↓ 1 callers
Method
DoWrapSelect
(SelectFunc)
client/plugin.go:229
↓ 1 callers
Method
DownloadFile
(ctx context.Context, requestFileName string, saveTo io.Writer, meta map[string]string)
client/xclient.go:64
↓ 1 callers
Method
Error
Error returns the error message.
server/service.go:27
↓ 1 callers
Function
ExternalIPV4
ExternalIPV4 gets external IPv4 address of this server.
util/net.go:83
↓ 1 callers
Function
ExternalIPV6
ExternalIPV6 gets external IPv6 address of this server.
util/net.go:121
↓ 1 callers
Method
Fail
()
client/client.go:78
↓ 1 callers
Method
FindCachedClient
(k, servicePath, serviceMethod string)
client/cache_client_builder.go:8
↓ 1 callers
Method
Fork
(ctx context.Context, serviceMethod string, args interface{}, reply interface{})
client/xclient.go:60
↓ 1 callers
Method
GenerateClient
(k, servicePath, serviceMethod string)
client/cache_client_builder.go:10
↓ 1 callers
Method
Get
Get returns a OneClient. It does not remove this OneClient from its cache so you don't need to put it back. Don't close this OneClient because maybe o
client/oneclient_pool.go:89
↓ 1 callers
Function
GetLogger
()
log/logger.go:38
↓ 1 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/client.go:262
↓ 1 callers
Method
HandleConnAccept
(net.Conn)
server/plugin.go:66
↓ 1 callers
Method
HandleConnClose
(net.Conn)
server/plugin.go:71
↓ 1 callers
Function
Hash
Hash consistently chooses a hash bucket number in the range [0, numBuckets) for the given key. numBuckets must be >= 1.
client/hash_utils.go:9
↓ 1 callers
Function
HashString
HashString get a hash value of a string
client/hash_utils.go:26
↓ 1 callers
Method
HeartbeatRequest
(ctx context.Context, req *protocol.Message)
server/plugin.go:124
↓ 1 callers
Method
Infof
(format string, v ...interface{})
log/logger.go:19
↓ 1 callers
Method
IsClosing
IsClosing client is closing or not.
client/client.go:245
↓ 1 callers
Method
IsShutdown
IsShutdown client is shutdown or not.
client/client.go:252
↓ 1 callers
Function
MagicNumber
()
protocol/message.go:32
↓ 1 callers
Method
MarshalTo
(dAtA []byte)
_testutils/arith_service.go:88
↓ 1 callers
Method
MarshalTo
(dAtA []byte)
_testutils/arith_service.go:116
↓ 1 callers
Method
MessageType
MessageType returns the message type.
protocol/message.go:137
↓ 1 callers
Function
New
()
reflection/server_reflection.go:63
↓ 1 callers
Function
NewBidirectionalOneClient
NewBidirectionalOneClient creates a new xclient that can receive notifications from servers.
client/oneclient.go:49
↓ 1 callers
Function
NewDNSDiscovery
NewDNSDiscovery returns a new DNSDiscovery.
client/dns_discovery.go:33
↓ 1 callers
Function
NewDefaultLogger
(out io.Writer, prefix string, flag int, lv Level)
log/default_logger.go:42
↓ 1 callers
Function
NewMDNSDiscovery
NewMDNSDiscovery returns a new MDNSDiscovery. If domain is empty, use "local." in default.
client/mdns_discovery.go:40
↓ 1 callers
Function
NewOneClient
NewOneClient creates a OneClient that supports service discovery and service governance.
client/oneclient.go:37
← previous
next →
201–300 of 869, ranked by callers