Advertise and update node names on cluster config exchange

Closes #244
This commit is contained in:
Audrius Butkevicius
2014-08-14 23:15:26 +01:00
parent bc885f1d08
commit e8a679c280
7 changed files with 98 additions and 13 deletions

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