MCPcopy Create free account

hub / github.com/smallnest/rpcx / functions

Functions869 in github.com/smallnest/rpcx

MethodIsASelectMode
IsASelectMode returns "true" if the value is listed in the enum definition. "false" otherwise
client/selectmode_enumer.go:46
MethodIsNotify
IsNotify returns true if this request is a notification.
server/jsonrpc2_wire.go:87
MethodIsServiceError
()
client/client.go:57
MethodJSONRPCError
()
server/jsonrpc2_wire.go:91
FunctionJumpConsistentHash
JumpConsistentHash selects a server by serviceMethod and args
client/hash_utils.go:49
MethodListServices
()
server/service.go:80
MethodLog
Log reports metrics into logs. p.Log( 5 * time.Second, log.New(os.Stderr, "metrics: ", log.Lmicroseconds))
serverplugin/metrics.go:94
MethodMarshal
()
_testutils/arith_service.go:106
MethodMarshalJSON
()
server/jsonrpc2_wire.go:98
MethodMarshalJSON
()
server/jsonrpc2_wire.go:126
MethodMetadata
Metadata returns the metadata.
server/context.go:52
FunctionMul
(ctx context.Context, args *Args, reply *Reply)
server/service_test.go:27
MethodMul
(ctx context.Context, args *Args, reply *Reply)
client/client_test.go:28
MethodMul
(ctx context.Context, args *testutils.ProtoArgs, reply *testutils.ProtoReply)
client/client_test.go:35
MethodMul
(ctx context.Context, args *Args, reply *Reply)
client/client_test.go:49
MethodMul
(ctx context.Context, args *testutils.ProtoArgs, reply *testutils.ProtoReply)
reflection/server_reflection_test.go:15
MethodMul
(ctx context.Context, args *Args, reply *Reply)
serverplugin/registry_test.go:16
MethodMul
(ctx context.Context, args *Args, reply *Reply)
server/server_test.go:29
MethodMuxMatch
(m cmux.CMux)
server/plugin.go:44
MethodMuxMatch
MuxMatch adds cmux Match.
server/plugin.go:402
FunctionNewAliasPlugin
NewAliasPlugin creates a new NewAliasPlugin
serverplugin/alias.go:35
FunctionNewBidirectionalOneClientPool
NewBidirectionalOneClientPool creates a BidirectionalOneClient pool with fixed size.
client/oneclient_pool.go:45
FunctionNewBidirectionalXClientPool
NewBidirectionalXClientPool creates a BidirectionalXClient pool with fixed size.
client/xclient_pool.go:50
FunctionNewClient
NewClient returns a new Client with the option.
client/client.go:140
FunctionNewFileTransfer
NewFileTransfer creates a FileTransfer with given parameters.
server/file_transfer.go:54
FunctionNewMDNSRegisterPlugin
NewMDNSRegisterPlugin return a new MDNSRegisterPlugin. If domain is empty, use "local." in default.
serverplugin/mdns.go:44
FunctionNewMetricsPlugin
NewMetricsPlugin creates a new MetricsPlugin
serverplugin/metrics.go:25
FunctionNewRateLimitingPlugin
NewRateLimitingPlugin creates a new RateLimitingPlugin
serverplugin/rate_limiting.go:18
FunctionNewRedisRateLimitingPlugin
NewRedisRateLimitingPlugin creates a new RateLimitingPlugin
clientplugin/req_rate_limiting_redis.go:23
FunctionNewRedisRateLimitingPlugin
NewRedisRateLimitingPlugin creates a new RateLimitingPlugin
serverplugin/req_rate_limiting_redis.go:23
FunctionNewReqRateLimitingPlugin
NewReqRateLimitingPlugin creates a new RateLimitingPlugin
serverplugin/req_rate_limiting.go:21
FunctionNewServiceError
NewServiceError creates a ServiceError with the error message.
client/client.go:44
FunctionNewStreamService
NewStreamService creates a stream service.
server/stream.go:48
FunctionNewTeeConnPlugin
(w io.Writer)
serverplugin/tee.go:13
FunctionNewThriftArgs_
()
_testutils/thrift_arith_service.go:28
FunctionNewThriftColorGroup
()
codec/testdata/thrift_colorgroup.go:30
FunctionNewThriftReply
()
_testutils/thrift_arith_service.go:181
MethodOneshot
(ctx context.Context, serviceMethod string, args interface{})
client/xclient.go:58
MethodOneshot
Oneshot invokes the named function, ** DOEST NOT ** wait for it to complete, and returns immediately.
client/xclient.go:706
FunctionPanic
(v ...interface{})
log/logger.go:81
MethodPanic
(v ...interface{})
log/dummy_logger.go:35
MethodPanic
(v ...interface{})
log/default_logger.go:112
FunctionPanicf
(format string, v ...interface{})
log/logger.go:84
MethodPanicf
(format string, v ...interface{})
log/dummy_logger.go:38
MethodPanicf
(format string, v ...interface{})
log/default_logger.go:116
FunctionParseRpcxAddress
ParseRpcxAddress parses rpcx address such as tcp@127.0.0.1:8972 quic@192.168.1.1:9981
util/net.go:25
MethodPayload
Payload returns the payload.
server/context.go:47
MethodPostCall
(ctx context.Context, servicePath, serviceMethod string, args interface{}, reply interface{}, err error)
client/plugin.go:174
MethodPostReadRequest
PostReadRequest can limit request processing.
serverplugin/req_rate_limiting_redis.go:43
MethodPostReadRequest
PostReadRequest converts the alias of this service.
serverplugin/alias.go:43
MethodPostReadRequest
PostReadRequest can limit request processing.
serverplugin/req_rate_limiting.go:33
MethodPostReadRequest
PostReadRequest counts read
serverplugin/metrics.go:53
MethodPostWriteResponse
PostWriteResponse count write
serverplugin/metrics.go:66
MethodPreCall
(ctx context.Context, servicePath, serviceMethod string, args interface{})
client/plugin.go:169
MethodPreCall
PreCall can limit request processing.
clientplugin/req_rate_limiting_redis.go:43
MethodPreCall
PreCall handles rpc call from clients
serverplugin/redis.go:162
MethodPreCall
PreCall handles rpc call from clients
serverplugin/mdns.go:153
MethodPreReadRequest
PreReadRequest marks start time of calling service
serverplugin/metrics.go:48
MethodPreWriteResponse
PreWriteResponse restore servicePath and serviceMethod.
serverplugin/alias.go:62
MethodProtoMessage
()
protocol/testdata/benchmark.pb.go:83
MethodProtoMessage
()
codec/testdata/protobuf.pb.go:46
MethodProtoMessage
()
_testutils/arith_service.go:41
MethodProtoMessage
()
_testutils/arith_service.go:64
MethodProtoReflect
()
protocol/testdata/benchmark.pb.go:85
MethodProtoReflect
()
codec/testdata/protobuf.pb.go:48
MethodRead
(ctx context.Context, iprot thrift.TProtocol)
_testutils/thrift_arith_service.go:39
MethodRead
(ctx context.Context, iprot thrift.TProtocol)
_testutils/thrift_arith_service.go:188
MethodReady
()
client/circuit_breaker.go:95
MethodRegister
(name string, rcvr interface{}, metadata string)
reflection/server_reflection.go:69
MethodRegister
Register handles registering event. this service is registered at BASE/serviceName/thisIpAddress node
serverplugin/redis.go:171
MethodRegister
Register handles registering event.
serverplugin/metrics.go:34
FunctionRegisterCacheClientBuilder
(network string, builder CacheClientBuilder)
client/cache_client_builder.go:18
MethodRegisterFunction
(serviceName, fname string, fn interface{}, metadata string)
serverplugin/mdns.go:187
MethodRegisterFunction
RegisterFunction publishes a function that satisfy the following conditions: - three arguments, the first is of context.Context, both of exported type
server/service.go:128
MethodRegisterFunctionName
RegisterFunctionName is like RegisterFunction but uses the provided name for the function instead of the function's concrete type.
server/service.go:139
FunctionRegisterMakeListener
RegisterMakeListener registers a MakeListener for network.
server/listener.go:22
MethodRegisterOnRestart
RegisterOnRestart registers a function to call on Restart.
server/server.go:936
MethodRegisterServerMessageChan
RegisterServerMessageChan registers the channel that receives server requests.
client/client.go:235
MethodRemoteAddr
RemoteAddr returns the remote address.
client/client.go:147
MethodRemove
Remove removes a plugin by its name.
client/plugin.go:28
MethodRemove
(plugin Plugin)
client/plugin.go:215
MethodRemove
Remove removes a plugin by it's name.
server/plugin.go:143
MethodRemoveWatcher
(ch chan []*KVPair)
client/multiple_servers_discovery.go:54
MethodRemoveWatcher
(ch chan []*KVPair)
client/mdns_discovery.go:86
MethodRemoveWatcher
(ch chan []*KVPair)
client/peer2peer_discovery.go:35
MethodRemoveWatcher
(ch chan []*KVPair)
client/dns_discovery.go:67
MethodRemoveWatcher
(ch chan []*KVPair)
client/discovery.go:111
MethodReset
Reset clean data of this message but keep allocated data
protocol/message.go:513
MethodReset
()
protocol/testdata/benchmark.pb.go:70
MethodReset
()
codec/testdata/protobuf.pb.go:33
MethodReset
()
server/pool_test.go:15
MethodReset
()
_testutils/arith_service.go:39
MethodReset
()
_testutils/arith_service.go:62
MethodRestart
Restart restarts this server gracefully. It starts a new rpcx server with the same port with SO_REUSEPORT socket option, and shutdown this rpcx server
server/server.go:1024
MethodSelect
(ctx context.Context, servicePath, serviceMethod string, args interface{})
client/selector.go:59
MethodSelect
(ctx context.Context, servicePath, serviceMethod string, args interface{})
client/selector.go:92
MethodSelect
(ctx context.Context, servicePath, serviceMethod string, args interface{})
client/selector.go:127
MethodSelect
(ctx context.Context, servicePath, serviceMethod string, args interface{})
client/selector.go:218
MethodSelect
(ctx context.Context, servicePath, serviceMethod string, args interface{})
client/selector.go:294
MethodSelect
(ctx context.Context, servicePath, serviceMethod string, args interface{})
client/ping_utils.go:29
← previousnext →601–700 of 869, ranked by callers