Advertise and update node names on cluster config exchange

Closes #244
This commit is contained in:
Audrius Butkevicius committed 2014-08-16 21:26:30 +01:00
1 parent bc885f1d08
commit e8a679c280
7 files changed
+98 -13

No files matched your search

+9
View File
@@ -98,6 +98,15 @@ type ClusterConfigMessage struct {
Options []Option // max:64
}
func (o *ClusterConfigMessage) GetOption(key string) string {
for _, option := range o.Options {
if option.Key == key {
return option.Value
}
}
return ""
}
type Repository struct {
ID string // max:64
Nodes []Node // max:64