mirror of
https://github.com/slackhq/nebula.git
synced 2026-05-16 21:07:36 +02:00
21 lines
343 B
Go
21 lines
343 B
Go
package overlay
|
|
|
|
import (
|
|
"io"
|
|
"net/netip"
|
|
|
|
"github.com/slackhq/nebula/overlay/tio"
|
|
"github.com/slackhq/nebula/routing"
|
|
)
|
|
|
|
type Device interface {
|
|
io.Closer
|
|
Activate() error
|
|
Networks() []netip.Prefix
|
|
Name() string
|
|
RoutesFor(netip.Addr) routing.Gateways
|
|
SupportsMultiqueue() bool
|
|
NewMultiQueueReader() error
|
|
Readers() []tio.Queue
|
|
}
|