add Config func

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2018-06-07 01:17:03 -04:00
parent 752f9b0d09
commit aa0c2abf84
No known key found for this signature in database
GPG key ID: A519480096146526

View file

@ -42,6 +42,10 @@ type Config struct {
Peers []string Peers []string
} }
func (a *Agent) Config() *Config {
return a.config
}
func setupMemberlistConfig(cfg *Config, peerUpdateChan chan bool, nodeEventChan chan *NodeEvent) (*memberlist.Config, error) { func setupMemberlistConfig(cfg *Config, peerUpdateChan chan bool, nodeEventChan chan *NodeEvent) (*memberlist.Config, error) {
var mc *memberlist.Config var mc *memberlist.Config
switch cfg.ConnectionType { switch cfg.ConnectionType {