Documentation
¶
Index ¶
Constants ¶
View Source
const ( OK = "OK" ErrNoKey = "ErrNoKey" ErrWrongGroup = "ErrWrongGroup" ReConfigOK = "ReConfigOK" Dead = "Dead" )
View Source
const Debug = 0
View Source
const MaxTransferRetries = 3000
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Clerk ¶
type Clerk struct {
// contains filtered or unexported fields
}
type ReConfigArgs ¶
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) HandleTransfer ¶
func (kv *ShardKV) HandleTransfer(args *TransferArgs, reply *TransferReply) error
type TransferArgs ¶
Click to show internal directories.
Click to hide internal directories.