Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrWrongLeader string = "ErrWrongLeader" OK string = "OK" )
View Source
const NShards = 1024
View Source
const RequestTimeout = 5 * 200 * time.Millisecond
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clerk ¶
type Clerk struct {
// contains filtered or unexported fields
}
func MakeClerk ¶
func MakeClerk(servers []pb.ShardctlClient) *Clerk
type ClientConfig ¶
type ShardCtl ¶
type ShardCtl struct { SessionMap *session.SessionMap AppliedIndex uint64 // contains filtered or unexported fields }
func StartServer ¶
StartServer servers[] contains the ports of the set of servers that will cooperate via Raft to form the fault-tolerant shardctl service. "me" is the index of the current server in servers[].
Click to show internal directories.
Click to hide internal directories.