Created
November 19, 2016 09:44
-
-
Save ijingo/159e200af937f60b975b7dbb060902bf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Master struct { | |
sync.Mutex | |
address string | |
registerChannel chan string | |
doneChannel chan bool | |
workers []string // protected by the mutex | |
// per-task info | |
jobName string | |
files []string | |
nReduce int | |
shutdown chan struct{} | |
l net.Listener | |
stats []int | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment