Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/armon/go-chord
/ functions
Functions
204 in github.com/armon/go-chord
⨍
Functions
204
◇
Types & classes
25
↓ 31 callers
Method
String
Converts the ID to string
vnode.go:11
↓ 22 callers
Function
makeRing
()
ring_test.go:27
↓ 15 callers
Method
init
(conf *Config, trans Transport)
ring.go:9
↓ 14 callers
Method
Next
()
iter_closest.go:23
↓ 13 callers
Method
FindSuccessors
(int, []byte)
chord.go:45
↓ 13 callers
Method
Register
Register for an RPC callbacks
chord.go:38
↓ 13 callers
Function
makeVnode
()
vnode_test.go:11
↓ 11 callers
Method
Notify
(*Vnode)
chord.go:44
↓ 10 callers
Method
ClearPredecessor
(*Vnode)
chord.go:46
↓ 10 callers
Method
GetPredecessor
()
chord.go:43
↓ 10 callers
Method
Ping
Ping a Vnode, check for liveness
chord.go:20
↓ 10 callers
Method
SkipSuccessor
(*Vnode)
chord.go:47
↓ 10 callers
Function
between
Checks if a key is STRICTLY between two ID's exclusively
util.go:20
↓ 10 callers
Function
makeLocal
()
transport_test.go:40
↓ 9 callers
Method
Deregister
(v *Vnode)
transport.go:158
↓ 9 callers
Function
fastConf
()
chord_test.go:118
↓ 8 callers
Method
Shutdown
()
chord.go:56
↓ 8 callers
Method
checkNewSuccessor
Checks for a new successor
vnode.go:88
↓ 7 callers
Function
Create
Creates a new Chord ring given the config and transport
chord.go:113
↓ 7 callers
Method
getConn
Gets an outbound connection to a host
net.go:139
↓ 7 callers
Method
returnConn
Returns an outbound TCP connection to the pool
net.go:181
↓ 6 callers
Function
Join
Joins an existing Chord ring
chord.go:126
↓ 6 callers
Method
ListVnodes
Gets a list of the vnodes on the box
chord.go:17
↓ 6 callers
Method
get
Checks for a local vnode
transport.go:36
↓ 6 callers
Method
get
Checks for a local vnode
net.go:126
↓ 6 callers
Method
invokeDelegate
Invokes a function on the delegate and returns completion channel
ring.go:94
↓ 6 callers
Method
knownSuccessors
Determine how many successors we know of
vnode.go:346
↓ 6 callers
Function
mergeErrors
Merges errors together
util.go:104
↓ 6 callers
Method
nearestVnode
Returns the nearest local vnode to the key
ring.go:45
↓ 6 callers
Method
schedule
Schedules each vnode in the ring
ring.go:56
↓ 5 callers
Function
InitLocalTransport
Creates a local transport to wrap a remote transport
transport.go:25
↓ 5 callers
Function
InitMLTransport
()
chord_test.go:14
↓ 5 callers
Function
betweenRightIncl
Checks if a key is between two ID's, right inclusive
util.go:33
↓ 5 callers
Function
distance
Computes the forward distance from a to b modulus a ring size
iter_closest.go:100
↓ 4 callers
Function
DefaultConfig
Returns the default Ring configuration
chord.go:99
↓ 4 callers
Method
checkPredecessor
Checks the health of our predecessor
vnode.go:231
↓ 4 callers
Method
init
(vn *localVnode, key []byte)
iter_closest.go:15
↓ 4 callers
Function
powerOffset
Computes the offset by (n + 2^exp) % (2^mod)
util.go:45
↓ 4 callers
Function
prepRing
(port int)
net_test.go:9
↓ 4 callers
Method
setLocalSuccessors
Initializes the vnodes with their local successors
ring.go:83
↓ 3 callers
Method
Lookup
Does a key lookup for up to N successors of a key
chord.go:199
↓ 3 callers
Function
closest_preceeding_vnode
Returns the closest preceeding Vnode to the key
iter_closest.go:89
↓ 3 callers
Method
fixFingerTable
Fixes up the finger table
vnode.go:188
↓ 3 callers
Function
min
min returns the min of two ints
util.go:84
↓ 3 callers
Function
nearestVnodeToKey
Returns the vnode nearest a key
util.go:93
↓ 3 callers
Method
notifySuccessor
Notifies our successor of us, updates successor list
vnode.go:141
↓ 3 callers
Method
stabilize
Called to periodically stabilize the vnode
vnode.go:50
↓ 3 callers
Method
stopDelegate
Stops the delegate handler
ring.go:74
↓ 3 callers
Method
stopVnodes
Wait for all the vnodes to shutdown
ring.go:66
↓ 3 callers
Function
trimSlice
Trims the slice to remove nil elements
net.go:813
↓ 2 callers
Method
Leave
Leaves a given Chord ring and shuts down the local vnodes
chord.go:176
↓ 2 callers
Method
delegateHandler
This handler runs in a go routine to invoke methods on the delegate
ring.go:112
↓ 2 callers
Method
genId
Generates an ID for the node
vnode.go:38
↓ 2 callers
Method
leave
Instructs the vnode to leave
vnode.go:292
↓ 2 callers
Function
max
max returns the max of two ints
util.go:75
↓ 2 callers
Function
randStabilize
Generates a random stabilization time
util.go:12
↓ 2 callers
Method
setupConn
Setup a connection
net.go:197
↓ 1 callers
Method
ClearPredecessor
(target, self *Vnode)
transport.go:190
↓ 1 callers
Method
Deregister
(host string)
chord_test.go:86
↓ 1 callers
Method
FindSuccessors
Finds next N successors. N must be <= NumSuccessors
vnode.go:248
↓ 1 callers
Method
FindSuccessors
(vn *Vnode, n int, key []byte)
transport.go:186
↓ 1 callers
Method
GetPredecessor
(vn *Vnode)
transport.go:178
↓ 1 callers
Function
InitTCPTransport
Creates a new TCP transport on the given listen address with the configured timeout duration.
net.go:92
↓ 1 callers
Method
Leaving
(local, pred, succ *Vnode)
chord.go:53
↓ 1 callers
Method
Len
Len is the number of vnodes
ring.go:29
↓ 1 callers
Method
ListVnodes
(host string)
transport.go:170
↓ 1 callers
Method
NewPredecessor
(local, remoteNew, remotePrev *Vnode)
chord.go:52
↓ 1 callers
Method
Notify
(vn, self *Vnode)
transport.go:182
↓ 1 callers
Method
Ping
(vn *Vnode)
transport.go:174
↓ 1 callers
Method
PredecessorLeaving
(local, remote *Vnode)
chord.go:54
↓ 1 callers
Method
SkipSuccessor
(target, self *Vnode)
transport.go:194
↓ 1 callers
Method
SuccessorLeaving
(local, remote *Vnode)
chord.go:55
↓ 1 callers
Method
handleConn
Handles inbound TCP connections
net.go:640
↓ 1 callers
Method
init
Initializes a local vnode
vnode.go:16
↓ 1 callers
Method
listen
Listens for inbound connections
net.go:614
↓ 1 callers
Method
reapOld
Closes old outbound connections
net.go:585
↓ 1 callers
Method
reapOnce
()
net.go:595
↓ 1 callers
Method
safeInvoke
Called to safely call a function on the delegate
ring.go:123
↓ 1 callers
Method
schedule
Schedules the Vnode to do regular maintenence
vnode.go:32
Method
ClearPredecessor
Used to clear our predecessor when a node is leaving
vnode.go:314
Method
ClearPredecessor
(p *Vnode)
transport_test.go:30
Method
ClearPredecessor
Clears a predecessor if it matches a given vnode. Used to leave.
chord_test.go:62
Method
ClearPredecessor
(target, self *Vnode)
transport.go:120
Method
ClearPredecessor
Clears a predecessor if it matches a given vnode. Used to leave.
chord.go:32
Method
ClearPredecessor
Clears a predecessor if it matches a given vnode. Used to leave.
net.go:454
Method
FindSuccessors
(n int, key []byte)
transport_test.go:25
Method
FindSuccessors
Find a successor
chord_test.go:54
Method
FindSuccessors
(vn *Vnode, n int, key []byte)
transport.go:107
Method
FindSuccessors
Find a successor
chord.go:29
Method
FindSuccessors
Find a successor
net.go:404
Method
GetPredecessor
RPC: Invoked to return out predecessor
vnode.go:136
Method
GetPredecessor
()
transport_test.go:18
Method
GetPredecessor
Request a nodes predecessor
chord_test.go:38
Method
GetPredecessor
(vn *Vnode)
transport.go:81
Method
GetPredecessor
Request a nodes predecessor
chord.go:23
Method
GetPredecessor
Request a nodes predecessor
net.go:304
Method
Leaving
(local, pred, succ *Vnode)
ring_test.go:17
Method
Less
Less returns whether the vnode with index i should sort before the vnode with index j.
ring.go:35
Method
ListVnodes
(host string)
chord_test.go:22
Method
ListVnodes
(host string)
transport.go:48
next →
1–100 of 204, ranked by callers