Documentation ¶
Index ¶
Constants ¶
View Source
const ( OK = "OK" ErrNoKey = "ErrNoKey" ErrWrongGroup = "ErrWrongGroup" )
View Source
const Debug = 0
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Clerk ¶
type Clerk struct {
// contains filtered or unexported fields
}
type PutAppendArgs ¶
type PutAppendReply ¶
type PutAppendReply struct {
Err Err
}
type ShardKV ¶
type ShardKV struct {
// contains filtered or unexported fields
}
func StartServer ¶
Start a shardkv server. gid is the ID of the server's replica group. shardmasters[] contains the ports of the
servers that implement the shardmaster.
servers[] contains the ports of the servers
in this replica group.
Me is the index of this server in servers[].
func (*ShardKV) PutAppend ¶
func (kv *ShardKV) PutAppend(args *PutAppendArgs, reply *PutAppendReply) error
RPC handler for client Put and Append requests
func (*ShardKV) Setunreliable ¶
please do not change these two functions.
Click to show internal directories.
Click to hide internal directories.