Lots of refactoring. We now have basic routing table watcher.

This commit is contained in:
Milos Gajdos
2019-06-11 23:59:25 +01:00
parent 5899134b66
commit 338e0fdf18
7 changed files with 320 additions and 64 deletions

View File

@@ -29,21 +29,21 @@ func ID(id string) Option {
}
}
// Address allows to set router address
// Address sets router address
func Address(a string) Option {
return func(o *Options) {
o.Address = a
}
}
// GossipAddress allows to set router address
func GossipAddress(a string) Option {
// GossipAddr sets router gossip address
func GossipAddr(a string) Option {
return func(o *Options) {
o.GossipAddr = a
}
}
// NetworkAddr allows to set router network
// NetworkAddr sets router network address
func NetworkAddr(n string) Option {
return func(o *Options) {
o.NetworkAddr = n