mirror of
https://github.com/rancher/types.git
synced 2025-04-28 02:30:07 +00:00
16 lines
221 B
Go
16 lines
221 B
Go
|
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)
|
||
|
}
|