mirror of
				https://github.com/rancher/types.git
				synced 2025-10-31 17:25:02 +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) | ||
|  | } |