github.com/rancher/types@v0.0.0-20220328215343-4370ff10ecd5/peermanager/peermanager.go (about) 1 package peermanager 2 3 type Peers struct { 4 SelfID string 5 IDs []string 6 Ready bool 7 Leader bool 8 } 9 10 type PeerManager interface { 11 IsLeader() bool 12 Leader() 13 AddListener(l chan<- Peers) 14 RemoveListener(l chan<- Peers) 15 }