1
0
mirror of https://github.com/rancher/types.git synced 2025-09-12 13:03:45 +00:00

Add peer manager

This commit is contained in:
Darren Shepherd
2018-09-17 15:58:44 -07:00
committed by Craig Jellick
parent 92b37efdc7
commit 62111462fe
2 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
package peermanager
type Peers struct {
SelfID string
IDs []string
Ready bool
Leader bool
}
type PeerManager interface {
IsLeader() bool
Leader()
AddListener(l chan<- Peers)
RemoveListener(l chan<- Peers)
}