add Config func
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
752f9b0d09
commit
aa0c2abf84
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue