mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-23 04:21:34 +00:00
Remove unused types in link.go
This commit is contained in:
parent
eeede4e6d0
commit
0be0b078cb
@ -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…
Reference in New Issue
Block a user