Documentation ¶
Index ¶
Constants ¶
View Source
const ( OK = "OK" ErrNoKey = "ErrNoKey" )
View Source
const Debug = 0
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Clerk ¶
type Clerk struct {
// contains filtered or unexported fields
}
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[].
func (*KVPaxos) PutAppend ¶
func (kv *KVPaxos) PutAppend(args *PutAppendArgs, reply *PutAppendReply) error
type PutAppendArgs ¶
type PutAppendArgs struct { // You'll have to add definitions here. Key string Value string Op string // "Put" or "Append" }
Put or Append
type PutAppendReply ¶
type PutAppendReply struct {
Err Err
}
Click to show internal directories.
Click to hide internal directories.