github.com/slackhq/nebula@v1.9.0/overlay/device.go (about) 1 package overlay 2 3 import ( 4 "io" 5 "net" 6 7 "github.com/slackhq/nebula/iputil" 8 ) 9 10 type Device interface { 11 io.ReadWriteCloser 12 Activate() error 13 Cidr() *net.IPNet 14 Name() string 15 RouteFor(iputil.VpnIp) iputil.VpnIp 16 NewMultiQueueReader() (io.ReadWriteCloser, error) 17 }