package
0.0.0-20170713091356-d2522080eaec
Repository: https://github.com/saiser/rpcx.git
Documentation: pkg.go.dev

# Functions

CalculateWeight converts the rtt to weighted by: 1.
Hash consistently chooses a hash bucket number in the range [0, numBuckets) for the given key.
HashString get a hash value of a string.
JumpConsistentHash selects a server by serviceMethod and args.
No description provided by the author
NewConsulClientSelector creates a ConsulClientSelector.
NewEtcdClientSelector creates a EtcdClientSelector.
NewEtcdClientSelector creates a EtcdClientSelector.
NewMultiClientSelector creates a MultiClientSelector.
NewZooKeeperClientSelector creates a ZooKeeperClientSelector sessionTimeout is timeout configuration for zookeeper.
Ping gets network traffic by ICMP.

# Structs

CMap is a goutine-safe/thread-safe map.
ConsulClientSelector is used to select a rpc server from consul.This registry is experimental and has not been test.
EtcdClientSelector is used to select a rpc server from etcd.
EtcdV3ClientSelector is used to select a rpc server from etcd via V3 API.
MultiClientSelector is used to select a direct rpc server from a list.
ServerPeer is.
Weighted is a wrapped server with weight.
ZooKeeperClientSelector is used to select a rpc server from zookeeper.

# Type aliases

ConsistentFunction define a hash function Return service address, like "[email protected]:8970".
HashServiceAndArgs define a hash function.