Documentation ¶
Index ¶
Constants ¶
View Source
const ( OK = "OK" ErrNoKey = "ErrNoKey" ServerDead = "ServerDead" )
View Source
const ( GET = "GET" PUT = "PUT" PUTHASH = "PUTHASH" )
View Source
const Debug = 0
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Clerk ¶
type Clerk struct {
// contains filtered or unexported fields
}
func (*Clerk) Get ¶
fetch the current value for a key. returns "" if the key does not exist. keeps trying forever in the face of all other errors.
type KVPaxos ¶
type KVPaxos struct {
// contains filtered or unexported fields
}
func StartServer ¶
servers[] contains the ports of the set of servers that will cooperate via Paxos to form the fault-tolerant key/value service. me is the index of the current server in servers[].
Click to show internal directories.
Click to hide internal directories.