mirror of
https://github.com/slackhq/nebula.git
synced 2024-11-10 17:24:37 +08:00
17 lines
265 B
Go
17 lines
265 B
Go
package overlay
|
|
|
|
import (
|
|
"io"
|
|
"net"
|
|
|
|
"github.com/slackhq/nebula/iputil"
|
|
)
|
|
|
|
type Device interface {
|
|
io.ReadWriteCloser
|
|
Activate() error
|
|
Cidr() *net.IPNet
|
|
Name() string
|
|
RouteFor(iputil.VpnIp) iputil.VpnIp
|
|
NewMultiQueueReader() (io.ReadWriteCloser, error)
|
|
}
|