mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Remove unused types in link.go
This commit is contained in:
		
							parent
							
								
									eeede4e6d0
								
							
						
					
					
						commit
						0be0b078cb
					
				
					 1 changed files with 0 additions and 5 deletions
				
			
		| 
						 | 
					@ -22,7 +22,6 @@ type link struct {
 | 
				
			||||||
	reconfigure chan chan error
 | 
						reconfigure chan chan error
 | 
				
			||||||
	mutex       sync.RWMutex // protects interfaces below
 | 
						mutex       sync.RWMutex // protects interfaces below
 | 
				
			||||||
	interfaces  map[linkInfo]*linkInterface
 | 
						interfaces  map[linkInfo]*linkInterface
 | 
				
			||||||
	handlers    map[string]linkListener
 | 
					 | 
				
			||||||
	awdl        awdl // AWDL interface support
 | 
						awdl        awdl // AWDL interface support
 | 
				
			||||||
	tcp         tcp  // TCP interface support
 | 
						tcp         tcp  // TCP interface support
 | 
				
			||||||
	// TODO timeout (to remove from switch), read from config.ReadTimeout
 | 
						// TODO timeout (to remove from switch), read from config.ReadTimeout
 | 
				
			||||||
| 
						 | 
					@ -36,10 +35,6 @@ type linkInfo struct {
 | 
				
			||||||
	remote   string           // Remote name or address
 | 
						remote   string           // Remote name or address
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type linkListener interface {
 | 
					 | 
				
			||||||
	init(*link) error
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type linkInterfaceMsgIO interface {
 | 
					type linkInterfaceMsgIO interface {
 | 
				
			||||||
	readMsg() ([]byte, error)
 | 
						readMsg() ([]byte, error)
 | 
				
			||||||
	writeMsg([]byte) (int, error)
 | 
						writeMsg([]byte) (int, error)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue