mirror of
https://github.com/slackhq/nebula.git
synced 2025-04-28 14:42:22 +00:00
17 lines
283 B
Go
17 lines
283 B
Go
package overlay
|
|
|
|
import (
|
|
"io"
|
|
"net/netip"
|
|
|
|
"github.com/slackhq/nebula/routing"
|
|
)
|
|
|
|
type Device interface {
|
|
io.ReadWriteCloser
|
|
Activate() error
|
|
Networks() []netip.Prefix
|
|
Name() string
|
|
RoutesFor(netip.Addr) routing.Gateways
|
|
NewMultiQueueReader() (io.ReadWriteCloser, error)
|
|
}
|