Search
Preparing search index...
The search index is not available
pinus-rpc
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
ConsistentHash
Class ConsistentHash
Hierarchy
ConsistentHash
Index
Constructors
constructor
Properties
algorithm
keys
nodes
opts
replicas
ring
station
Methods
add
Node
get
Node
get
Node
Position
remove
Node
Constructors
constructor
new
Consistent
Hash
(
nodes
:
Array
<
RpcServerInfo
>
, opts
:
any
)
:
ConsistentHash
Parameters
nodes:
Array
<
RpcServerInfo
>
opts:
any
Returns
ConsistentHash
Properties
algorithm
algorithm
:
string
keys
keys
:
object
= []
Type declaration
[
key:
string
]:
any
nodes
nodes
:
Array
<
RpcServerInfo
>
= []
opts
opts
:
any
replicas
replicas
:
number
ring
ring
:
object
Type declaration
[
key:
string
]:
any
station
station
:
any
Methods
add
Node
add
Node
(
node
:
RpcServerInfo
)
:
void
Parameters
node:
RpcServerInfo
Returns
void
get
Node
get
Node
(
key
:
string
)
:
any
Parameters
key:
string
Returns
any
get
Node
Position
get
Node
Position
(
result
:
string
)
:
number
Parameters
result:
string
Returns
number
remove
Node
remove
Node
(
node
:
RpcServerInfo
)
:
void
Parameters
node:
RpcServerInfo
Returns
void
Globals
Consistent
Hash
constructor
algorithm
keys
nodes
opts
replicas
ring
station
add
Node
get
Node
get
Node
Position
remove
Node