mirror of
https://github.com/rancher/types.git
synced 2025-04-27 18:25:05 +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)
|
|
}
|