Documentation ¶
Index ¶
Constants ¶
View Source
const ( OK = "OK" ErrNoKey = "ErrNoKey" ErrWrongLeader = "ErrWrongLeader" NoKeyValue = "" RPCGet = "KVServer.Get" RPCPutAppend = "KVServer.PutAppend" OpPut = "Put" OpAppend = "Append" OpGet = "Get" CommitTimeout = "CommitTimeout" )
View Source
const Debug = 1
Variables ¶
This section is empty.
Functions ¶
func GetClientEnds ¶
Types ¶
type ClientConfig ¶
type KVServer ¶
type KVServer struct {
// contains filtered or unexported fields
}
func StartKVServer ¶
func (*KVServer) PutAppend ¶
func (kv *KVServer) PutAppend(args *PutAppendArgs, reply *PutAppendReply) error
type PutAppendArgs ¶
type PutAppendArgs struct { Key string Value string Op string // "Put" or "Append" Id uuid.UUID Serial uuid.UUID }
Put or Append
type PutAppendReply ¶
type PutAppendReply struct {
Err Err
}
Click to show internal directories.
Click to hide internal directories.