Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ailidani/paxi
/ functions
Functions
575 in github.com/ailidani/paxi
⨍
Functions
575
◇
Types & classes
177
↓ 208 callers
Method
ID
()
node.go:16
↓ 159 callers
Method
Register
(m interface{}, f interface{})
node.go:20
↓ 61 callers
Function
Debugf
(format string, v ...interface{})
log/log.go:134
↓ 38 callers
Function
Error
(v ...interface{})
log/log.go:164
↓ 38 callers
Method
Zone
Zone returns Zond ID component
id.go:26
↓ 30 callers
Method
Send
Send put message to outbound queue
socket.go:15
↓ 28 callers
Method
ACK
ACK adds id to quorum ack records
quorum.go:22
↓ 22 callers
Method
Reply
Reply replies to current client session
message.go:33
↓ 21 callers
Method
Broadcast
Broadcast send to all peers
socket.go:24
↓ 18 callers
Method
Send
Send overrides Socket interface in Node
kpaxos/replica.go:118
↓ 16 callers
Function
NewQuorum
NewQuorum returns a new Quorum
quorum.go:12
↓ 15 callers
Method
Get
(Key)
db.go:56
↓ 15 callers
Method
Run
()
node.go:17
↓ 14 callers
Method
Forward
(id ID, r Request)
node.go:19
↓ 14 callers
Function
NewNode
NewNode creates a new Node object from configuration
node.go:38
↓ 13 callers
Method
Execute
(Command)
db.go:54
↓ 13 callers
Function
GetConfig
GetConfig returns paxi package configuration
config.go:45
↓ 13 callers
Function
Infof
(format string, v ...interface{})
log/log.go:146
↓ 12 callers
Method
Broadcast
Broadcast overrides Socket interface in Node
kpaxos/replica.go:104
↓ 12 callers
Method
Close
()
socket.go:29
↓ 12 callers
Method
Encode
(interface{})
codec.go:15
↓ 12 callers
Function
Max
Max of two int
util.go:13
↓ 11 callers
Method
Add
(e interface{})
lib/set.go:9
↓ 11 callers
Method
Decode
(interface{})
codec.go:16
↓ 11 callers
Function
Fatal
(v ...interface{})
log/log.go:172
↓ 11 callers
Method
linearizable
(history []*operation)
checker.go:69
↓ 10 callers
Method
MulticastZone
MulticastZone send msg to all nodes in the same site
socket.go:18
↓ 9 callers
Method
Majority
Majority quorum satisfied
quorum.go:60
↓ 9 callers
Method
Write
(key, value int)
benchmark.go:16
↓ 8 callers
Method
Ballot
Ballot returns current ballot
paxos/paxos.go:71
↓ 8 callers
Function
NewBallot
NewBallot generates ballot number in format <n, zone, node>
ballot.go:15
↓ 8 callers
Method
Reset
Reset resets the quorum to empty
quorum.go:48
↓ 8 callers
Method
Set
(value string)
log/log.go:35
↓ 7 callers
Method
AddEdge
(from, to interface{})
lib/graph.go:49
↓ 7 callers
Function
Errorf
(format string, v ...interface{})
log/log.go:168
↓ 7 callers
Method
Has
(e interface{})
lib/set.go:13
↓ 7 callers
Method
IsRead
()
db.go:32
↓ 7 callers
Method
Len
Len returns the number of items in the stack
lib/stack.go:19
↓ 7 callers
Function
NewPolicy
NewPolicy returns the policy by policy name from config
policy.go:16
↓ 7 callers
Function
NewSet
()
lib/set.go:5
↓ 7 callers
Method
Next
Next generates the next ballot number given node id
ballot.go:50
↓ 7 callers
Method
String
()
chain/msg.go:32
↓ 6 callers
Function
Fatalf
(format string, v ...interface{})
log/log.go:177
↓ 6 callers
Method
HandleRequest
HandleRequest handles request and start phase 1 or phase 2
paxos/paxos.go:86
↓ 6 callers
Method
Has
(v interface{})
lib/graph.go:23
↓ 6 callers
Method
IsLeader
IsLeader indecates if this node is current leader
paxos/paxos.go:61
↓ 6 callers
Function
NewID
NewID returns a new ID type given two int number of zone and node
id.go:14
↓ 6 callers
Method
Node
Node returns Node ID component
id.go:41
↓ 6 callers
Method
RESTGet
RESTGet issues a http call to node and return value and headers
client.go:157
↓ 6 callers
Method
Wait
Wait blocks for the limit
rate.go:26
↓ 6 callers
Method
paxos
(gid int)
paxos_group/replica.go:35
↓ 5 callers
Method
Add
(v interface{})
lib/graph.go:27
↓ 5 callers
Method
Hit
(id ID)
policy.go:12
↓ 5 callers
Function
Info
(v ...interface{})
log/log.go:140
↓ 5 callers
Function
NewGraph
()
lib/graph.go:11
↓ 5 callers
Function
NewHTTPClient
NewHTTPClient creates a new Client from config
client.go:46
↓ 5 callers
Function
NewPaxos
NewPaxos creates new paxos instance
paxos/paxos.go:41
↓ 5 callers
Method
Push
Push a value onto the top of the stack
lib/stack.go:44
↓ 5 callers
Method
Put
(Key, Value)
db.go:57
↓ 5 callers
Method
String
()
stat.go:39
↓ 5 callers
Method
copyDep
copyDep clones dependency list of instance
epaxos/instance.go:43
↓ 5 callers
Method
rest
rest accesses server's REST API with url = http://ip:port/key if value == nil, it's a read
client.go:104
↓ 4 callers
Method
Close
Close closes send channel and stops listener
transport.go:36
↓ 4 callers
Method
Contains
(e interface{})
lib/cset.go:33
↓ 4 callers
Method
Equal
(a Command)
db.go:40
↓ 4 callers
Method
Get
(Key)
client.go:21
↓ 4 callers
Method
HandleP1a
HandleP1a handles P1a message
paxos/paxos.go:134
↓ 4 callers
Method
HandleP1b
HandleP1b handles P1b message
paxos/paxos.go:183
↓ 4 callers
Method
HandleP2a
HandleP2a handles P2a message
paxos/paxos.go:231
↓ 4 callers
Method
HandleP2b
HandleP2b handles P2b message
paxos/paxos.go:268
↓ 4 callers
Method
HandleP3
HandleP3 handles phase 3 commit message
paxos/paxos.go:311
↓ 4 callers
Method
Insert
Insert inserts the value and its byte into ring as a node
lib/hash_ring.go:23
↓ 4 callers
Method
Leader
Leader returns leader id of the current ballot
paxos/paxos.go:66
↓ 4 callers
Method
Listen
Listen waits for connections, non-blocking once listener starts
transport.go:33
↓ 4 callers
Method
N
N returns first 32 bit of ballot
ballot.go:38
↓ 4 callers
Function
NewTransport
NewTransport creates new transport object with url
transport.go:40
↓ 4 callers
Method
Next
Next returns the next value in the ring; nil if v does not exists
lib/hash_ring.go:69
↓ 4 callers
Method
Remove
(v interface{})
lib/graph.go:35
↓ 4 callers
Method
ZoneMajority
ZoneMajority returns true if majority quorum satisfied in any zone
quorum.go:75
↓ 4 callers
Method
exec
()
sdpaxos/replica.go:238
↓ 4 callers
Method
init
(key paxi.Key)
m2paxos/replica.go:30
↓ 4 callers
Method
init
(key paxi.Key)
kpaxos/replica.go:46
↓ 4 callers
Method
init
(key paxi.Key)
wpaxos/replica.go:36
↓ 4 callers
Method
retry
(s int, b paxi.Ballot)
hpaxos/paxos.go:129
↓ 4 callers
Method
update
updates local record for conflicts
epaxos/replica.go:82
↓ 3 callers
Method
Clone
()
lib/set.go:36
↓ 3 callers
Function
ConnectToMaster
ConnectToMaster connects to master node and set global Config
util.go:69
↓ 3 callers
Function
Debug
(v ...interface{})
log/log.go:128
↓ 3 callers
Method
Dial
Dial connects to remote server non-blocking once connected
transport.go:30
↓ 3 callers
Method
ID
ID return node id as last 32 bits of ballot
ballot.go:43
↓ 3 callers
Function
Init
Init setup paxi package
init.go:11
↓ 3 callers
Function
NewBallotFromString
(b string)
ballot.go:19
↓ 3 callers
Function
NewCodec
NewCodec creates new codec object based on scheme, i.e. json and gob
codec.go:20
↓ 3 callers
Function
NewSocket
NewSocket return Socket interface instance given self ID, node list, transport and codec name
socket.go:52
↓ 3 callers
Method
P1a
P1a starts phase 1 prepare
paxos/paxos.go:100
↓ 3 callers
Method
RESTPut
RESTPut puts new value as http.request body and return previous value
client.go:162
↓ 3 callers
Method
Read
(key int)
benchmark.go:15
↓ 3 callers
Method
Recv
Recv waits for message from t.recv chan
transport.go:27
↓ 3 callers
Method
Recv
Recv receives a message
socket.go:27
↓ 3 callers
Method
Remove
(e interface{})
lib/set.go:18
next →
1–100 of 575, ranked by callers