Documentation ¶
Index ¶
Constants ¶
View Source
const ( OK = "OK" ErrNoKey = "ErrNoKey" ErrWrongServer = "ErrWrongServer" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clerk ¶
type Clerk struct {
// contains filtered or unexported fields
}
func (*Clerk) Append ¶
tell the primary to append to key's value. must keep trying until it succeeds.
func (*Clerk) Get ¶
fetch a key's value from the current primary; if they key has never been set, return "". Get() must keep trying until it either the primary replies with the value or the primary says the key doesn't exist (has never been Put().
type PBServer ¶
type PBServer struct {
// contains filtered or unexported fields
}
func StartServer ¶
func (*PBServer) PutAppend ¶
func (pb *PBServer) PutAppend(args *PutAppendArgs, reply *PutAppendReply) error
type PutAppendReply ¶
type PutAppendReply struct {
Err Err
}
Click to show internal directories.
Click to hide internal directories.