Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aQuaYi/MIT-6.824-Distributed-Systems
/ types & classes
Types & classes
96 in github.com/aQuaYi/MIT-6.824-Distributed-Systems
⨍
Functions
473
◇
Types & classes
96
↓ 9 callers
FuncType
fsmHandler
func(*Raft, interface{}) fsmState
src/raft/fsm.go:7
↓ 4 callers
TypeAlias
fsmEvent
src/raft/fsm.go:6
↓ 2 callers
TypeAlias
bitset
src/linearizability/bitset.go:3
↓ 1 callers
TypeAlias
byTime
src/linearizability/linearizability.go:23
Struct
AppendEntriesArgs
AppendEntriesArgs 是添加 log 的参数
src/raft/rpc_appendEntries.go:8
Struct
AppendEntriesReply
AppendEntriesReply 是 flower 回复 leader 的内容
src/raft/rpc_appendEntries.go:25
Struct
ApplyMsg
ApplyMsg 是发送消息 as each Raft peer becomes aware that successive log entries are committed, the peer should send an ApplyMsg to the service (or tester)
src/raft/applyMsg.go:19
Struct
Clerk
src/shardmaster/client.go:12
Struct
Clerk
src/kvraft/client.go:8
Struct
Clerk
src/shardkv/client.go:38
Struct
ClientEnd
src/labrpc/labrpc.go:75
Struct
Config
A configuration -- an assignment of shards to groups. Please don't change this.
src/shardmaster/common.go:25
Struct
DD
src/labgob/test_test.go:149
Struct
DoTaskArgs
What follows are RPC types and methods. Field names must start with capital letters, otherwise RPC will break. DoTaskArgs holds the arguments that are
src/mapreduce/common_rpc.go:13
TypeAlias
Err
src/shardmaster/common.go:35
TypeAlias
Err
src/kvraft/common.go:8
TypeAlias
Err
src/shardkv/common.go:18
TypeAlias
Err
Err 定义错误类型
Lectures/LEC02/kv/kv.go:86
Struct
Event
src/linearizability/model.go:17
TypeAlias
EventKind
src/linearizability/model.go:10
Interface
Fetcher
Fetcher Fetcher 接口
Lectures/LEC02/crawler/crawler.go:159
Struct
GetArgs
src/kvraft/common.go:25
Struct
GetArgs
src/shardkv/common.go:36
Struct
GetArgs
GetArgs : Get 命令输入参数
Lectures/LEC02/kv/kv.go:89
Struct
GetReply
src/kvraft/common.go:30
Struct
GetReply
src/shardkv/common.go:41
Struct
GetReply
GetReply : Get 命令返回结果的结构体
Lectures/LEC02/kv/kv.go:94
Struct
InstallSnapshotArgs
InstallSnapshotArgs is
src/raft/rpc_snapshot.go:9
Struct
InstallSnapshotReply
InstallSnapshotReply is
src/raft/rpc_snapshot.go:18
Struct
JoinArgs
src/shardmaster/common.go:37
Struct
JoinReply
src/shardmaster/common.go:41
Struct
JunkArgs
src/labrpc/test_test.go:10
Struct
JunkReply
src/labrpc/test_test.go:13
Struct
JunkServer
src/labrpc/test_test.go:17
Struct
KV
Server KV 是键值对 其实例会在 rpc 中注册,供客户端远程访问
Lectures/LEC02/kv/kv.go:44
Struct
KVServer
src/kvraft/server.go:26
Struct
KeyValue
KeyValue is a type used to hold the key/value pairs passed to the map and reduce functions.
src/mapreduce/common.go:29
Struct
KvInput
kv model
src/linearizability/models.go:5
Struct
KvOutput
src/linearizability/models.go:11
Struct
LabDecoder
src/labgob/labgob.go:42
Struct
LabEncoder
src/labgob/labgob.go:22
Struct
LeaveArgs
src/shardmaster/common.go:46
Struct
LeaveReply
src/shardmaster/common.go:50
Struct
LogEntry
LogEntry is log entry
src/raft/logEntry.go:4
Struct
Master
Master holds all the state that the master needs to keep track of.
src/mapreduce/master.go:14
Struct
Model
src/linearizability/model.go:23
Struct
MoveArgs
src/shardmaster/common.go:55
Struct
MoveReply
src/shardmaster/common.go:60
Struct
Network
src/labrpc/labrpc.go:116
Struct
Op
src/shardmaster/server.go:19
Struct
Op
src/kvraft/server.go:20
Struct
Op
src/shardkv/server.go:9
Struct
Operation
src/linearizability/model.go:3
Struct
Parallelism
Parallelism track whether workers executed in parallel.
src/mapreduce/worker.go:18
Struct
Persister
Persister is
src/raft/persister.go:15
Struct
PutAppendArgs
Put or Append
src/kvraft/common.go:11
Struct
PutAppendArgs
Put or Append
src/shardkv/common.go:21
Struct
PutAppendReply
src/kvraft/common.go:20
Struct
PutAppendReply
src/shardkv/common.go:31
Struct
PutArgs
PutArgs : Put 输入命令参数
Lectures/LEC02/kv/kv.go:118
Struct
PutReply
PutReply : Put 命令返回结果的结构体
Lectures/LEC02/kv/kv.go:124
Struct
QueryArgs
src/shardmaster/common.go:65
Struct
QueryReply
src/shardmaster/common.go:69
Struct
Raft
Raft implements a single Raft peer.
src/raft/raft_new.go:11
Struct
RegisterArgs
RegisterArgs is the argument passed when a worker registers with the master.
src/mapreduce/common_rpc.go:32
Struct
RequestVoteArgs
RequestVoteArgs 获取投票参数 example RequestVote RPC arguments structure. field names must start with capital letters!
src/raft/rpc_requestVote.go:11
Struct
RequestVoteReply
RequestVoteReply 投票回复 example RequestVote RPC reply structure. field names must start with capital letters!
src/raft/rpc_requestVote.go:29
Struct
Server
a server is a collection of services, all sharing the same rpc dispatcher. so that e.g. both a Raft and a k/v server can listen to the same rpc endpo
src/labrpc/labrpc.go:369
Struct
Service
an object with methods that can be called via RPC. a single server may have more than one Service.
src/labrpc/labrpc.go:422
Struct
ShardKV
src/shardkv/server.go:15
Struct
ShardMaster
src/shardmaster/server.go:8
Struct
ShutdownReply
ShutdownReply is the response to a WorkerShutdown. It holds the number of tasks this worker has processed since it was started.
src/mapreduce/common_rpc.go:27
Struct
T1
src/labgob/test_test.go:7
Struct
T2
src/labgob/test_test.go:14
Struct
T3
src/labgob/test_test.go:20
Struct
T4
src/labgob/test_test.go:110
Struct
Worker
Worker holds the state for a server waiting for DoTask or Shutdown RPCs
src/mapreduce/worker.go:25
Struct
args
src/raft/applyMsg_test.go:6
Struct
cacheEntry
src/linearizability/linearizability.go:128
Struct
callsEntry
src/linearizability/linearizability.go:142
Struct
config
src/shardmaster/config.go:34
Struct
config
src/kvraft/config.go:44
Struct
config
src/raft/config.go:37
Struct
config
src/shardkv/config.go:53
Struct
entry
src/linearizability/linearizability.go:16
TypeAlias
entryKind
src/linearizability/linearizability.go:9
TypeAlias
fakeFetcher
fakeFetcher is Fetcher that returns canned results.
Lectures/LEC02/crawler/crawler.go:165
Struct
fakeResult
Lectures/LEC02/crawler/crawler.go:167
Struct
fetchState
Concurrent crawler with shared state and Mutex fetchState 管理抓取时候的状态
Lectures/LEC02/crawler/crawler.go:45
TypeAlias
fsmState
src/raft/fsm.go:5
Struct
group
src/shardkv/config.go:45
TypeAlias
jobPhase
jobPhase indicates whether a task is scheduled as a map or reduce task.
src/mapreduce/common.go:20
Struct
node
src/linearizability/linearizability.go:51
Struct
replyMsg
src/labrpc/labrpc.go:70
Struct
reqMsg
src/labrpc/labrpc.go:62
Struct
toFollowerArgs
src/raft/fsm_handlers.go:252